Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit ea36caf

Browse files
Removed MaxMind from System Status
1 parent e325eaf commit ea36caf

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

src/Controllers/Version2/class-wc-rest-system-status-v2-controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ public function get_database_info() {
855855
return array(
856856
'wc_database_version' => get_option( 'woocommerce_db_version' ),
857857
'database_prefix' => $wpdb->prefix,
858-
'maxmind_geoip_database' => WC_Geolocation::get_local_database_path(),
858+
'maxmind_geoip_database' => '',
859859
'database_tables' => $tables,
860860
'database_size' => $database_size,
861861
);

unit-tests/Tests/Version2/system-status.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ public function test_get_system_status_info_database() {
101101

102102
$this->assertEquals( get_option( 'woocommerce_db_version' ), $database['wc_database_version'] );
103103
$this->assertEquals( $wpdb->prefix, $database['database_prefix'] );
104-
$this->assertEquals( WC_Geolocation::get_local_database_path(), $database['maxmind_geoip_database'] );
105104
$this->assertArrayHasKey( 'woocommerce', $database['database_tables'], print_r( $database, true ) );
106105
$this->assertArrayHasKey( $wpdb->prefix . 'woocommerce_payment_tokens', $database['database_tables']['woocommerce'], print_r( $database, true ) );
107106
}

unit-tests/Tests/Version3/system-status.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ public function test_get_system_status_info_database() {
139139

140140
$this->assertEquals( get_option( 'woocommerce_db_version' ), $database['wc_database_version'] );
141141
$this->assertEquals( $wpdb->prefix, $database['database_prefix'] );
142-
$this->assertEquals( WC_Geolocation::get_local_database_path(), $database['maxmind_geoip_database'] );
143142
$this->assertArrayHasKey( 'woocommerce', $database['database_tables'], wc_print_r( $database, true ) );
144143
$this->assertArrayHasKey( $wpdb->prefix . 'woocommerce_payment_tokens', $database['database_tables']['woocommerce'], wc_print_r( $database, true ) );
145144
}

0 commit comments

Comments
 (0)