PluginProbe
WP Database Backup – Unlimited Database & Files Backup by Backup for WP / 6.11
WP Database Backup – Unlimited Database & Files Backup by Backup for WP v6.11
7.13 7.12 trunk 1.1 2.1.1 5.9 6.0 6.1 6.10 6.11 6.12 6.12.1 6.2 6.3 6.4 6.5 6.5.1 6.6 6.7 6.8 6.9 7.0 7.0.1 7.1 7.10 All 34 releases
← All changes | uninstall.php +6 -10 6.126.11 View file →
@@ -23,12 +23,10 @@
23 23 'wp_db_backup_sftp_details',
24 24 'wpdb_dest_bb_s3_bucket',
25 25 'wpdb_dest_bb_s3_bucket_key',
26 26 'wpdb_dest_bb_s3_bucket_secret',
27 - 'wpdb_dest_bb_s3_bucket_host',
28 - 'wp_db_backup_destination_bb',
29 - 'wp_db_backup_backups',
30 - 'wp_db_backup_options'
27 + 'wpdb_dest_bb_s3_bucket_host'
28 +
31 29 );
32 30
33 31 foreach ($options_to_remove as $option) {
34 32 delete_option($option);
@@ -38,14 +36,12 @@
38 36
39 37 if (is_multisite()) {
40 38 // Get all sites in the network
41 39 $sites = get_sites();
42 - if(!empty($sites) && is_array($sites)) {
43 - foreach ($sites as $site) {
44 - switch_to_blog($site->blog_id);
45 - wp_db_delete_options_for_site();
46 - restore_current_blog();
47 - }
40 + foreach ($sites as $site) {
41 + switch_to_blog($site->blog_id);
42 + wp_db_delete_options_for_site();
43 + restore_current_blog();
48 44 }
49 45
50 46 } else {
51 47 // Single site