Changeset 774874
- Timestamp:
- 09/18/2013 08:48:05 PM (13 years ago)
- Location:
- wponlinebackup/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (1 diff)
-
uninstall.php (modified) (1 diff)
-
wponlinebackup.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wponlinebackup/trunk/readme.txt
r774720 r774874 75 75 * Fix "Exclude plugins" which was not working for the common plugins folder, and was only working for the mu-plugins folder 76 76 * Fix a failed backup that can occur for users with very large databases 77 * Fix warnings and notices after new installations when WP_DEBUG is enabled, and blank schedule defaults, due to an activation glitch 77 78 78 79 = 3.0.4 = -
wponlinebackup/trunk/uninstall.php
r724954 r774874 30 30 delete_option( 'wponlinebackup_last_gzip_tmp_dir' ); 31 31 delete_option( 'wponlinebackup_network_activated' ); 32 delete_option( 'wponlinebackup_check_tables' ); 32 33 33 34 // Cleanup the database tables 34 $wpdb->query( 'DROP TABLE `' . $db_prefix . 'wponlinebackup_status`' );35 $wpdb->query( 'DROP TABLE `' . $db_prefix . 'wponlinebackup_items`' );36 $wpdb->query( 'DROP TABLE `' . $db_prefix . 'wponlinebackup_generations`' );37 $wpdb->query( 'DROP TABLE `' . $db_prefix . 'wponlinebackup_scan_log`' );38 $wpdb->query( 'DROP TABLE `' . $db_prefix . 'wponlinebackup_activity_log`' );39 $wpdb->query( 'DROP TABLE `' . $db_prefix . 'wponlinebackup_event_log`' );40 $wpdb->query( 'DROP TABLE `' . $db_prefix . 'wponlinebackup_local`' );35 $wpdb->query( 'DROP TABLE IF EXISTS `' . $db_prefix . 'wponlinebackup_status`' ); 36 $wpdb->query( 'DROP TABLE IF EXISTS `' . $db_prefix . 'wponlinebackup_items`' ); 37 $wpdb->query( 'DROP TABLE IF EXISTS `' . $db_prefix . 'wponlinebackup_generations`' ); 38 $wpdb->query( 'DROP TABLE IF EXISTS `' . $db_prefix . 'wponlinebackup_scan_log`' ); 39 $wpdb->query( 'DROP TABLE IF EXISTS `' . $db_prefix . 'wponlinebackup_activity_log`' ); 40 $wpdb->query( 'DROP TABLE IF EXISTS `' . $db_prefix . 'wponlinebackup_event_log`' ); 41 $wpdb->query( 'DROP TABLE IF EXISTS `' . $db_prefix . 'wponlinebackup_local`' ); 41 42 42 43 // Cleanup legacy tables in case they never got upgraded (should never happen) 43 $wpdb->query( 'DROP TABLE `' . $db_prefix . 'online_backup`' );44 $wpdb->query( 'DROP TABLE IF EXISTS `' . $db_prefix . 'online_backup`' ); 44 45 45 46 } -
wponlinebackup/trunk/wponlinebackup.php
r768959 r774874 776 776 $existing = get_option( 'wponlinebackup_schedule', array() ); 777 777 778 // Delta add missing settings 779 foreach ( $existing as $key => $value ) 780 if ( array_key_exists( $key, $schedule ) ) 781 $schedule[ $key ] = $value; 782 778 783 // For schedule, we leave alone apart from backup_filesystem, which used to default to off when we set up the plugin 779 784 // If the schedule has not been changed from the original, we change the backup_filesystem to true, the new default 780 if ( isset( $existing['schedule'] ) && $existing['schedule'] == '' && isset( $existing['backup_database'] ) && $existing['backup_database'] )781 $ existing['backup_filesystem'] = true;785 if ( $schedule['schedule'] == '' && $schedule['backup_database'] ) 786 $schedule['backup_filesystem'] = true; 782 787 783 788 // Add it first so we can turn autoload off for it - this won't update if it already exists, however - so update it immediately after, but update with the existing info! 784 789 add_option( 'wponlinebackup_schedule', $schedule, '', 'no' ); 785 update_option( 'wponlinebackup_schedule', $ existing);790 update_option( 'wponlinebackup_schedule', $schedule ); 786 791 787 792 // Add / update the check tables option - auto-load since we use it every load
Note: See TracChangeset
for help on using the changeset viewer.