| @@ -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 |