PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 6.3.0
Defender Security – Malware Scanner, Login Security & Firewall v6.3.0
6.3.0 6.2.3 6.2.4 6.2.0 6.2.1 6.2.2 6.1.0 5.3.1 5.4.0 5.4.1 5.5.0 5.5.1 5.6.0 5.6.1 5.6.2 5.7.0 5.7.1 5.7.2 5.8.0 5.8.1 5.9.0 6.0.0 6.0.1 3.0.1 3.1.0 All 141 releases
← All changes | src/integrations/class-maxmind-geolocation.php +2 -1 5.4.0 → 6.3.0 View file →
@@ -10,8 +10,9 @@
10 10 use WP_Error;
11 11 use PharData;
12 12 use Exception;
13 13 use WP_Defender\Traits\IO;
14 +use WP_Filesystem_Base;
14 15
15 16 if ( ! defined( 'ABSPATH' ) ) {
16 17 die;
17 18 }
@@ -119,9 +120,9 @@
119 120 */
120 121 public function delete_database() {
121 122 global $wp_filesystem;
122 123 // Initialize the WP filesystem, no more using 'file-put-contents' function.
123 - if ( empty( $wp_filesystem ) ) {
124 + if ( ! $wp_filesystem instanceof WP_Filesystem_Base ) {
124 125 require_once ABSPATH . '/wp-admin/includes/file.php';
125 126 WP_Filesystem();
126 127 }
127 128 $database_path = $this->get_db_base_path();