Plugin Directory

Changeset 774874


Ignore:
Timestamp:
09/18/2013 08:48:05 PM (13 years ago)
Author:
Driskell
Message:

Stage dev version

Location:
wponlinebackup/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wponlinebackup/trunk/readme.txt

    r774720 r774874  
    7575* Fix "Exclude plugins" which was not working for the common plugins folder, and was only working for the mu-plugins folder
    7676* 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
    7778
    7879= 3.0.4 =
  • wponlinebackup/trunk/uninstall.php

    r724954 r774874  
    3030    delete_option( 'wponlinebackup_last_gzip_tmp_dir' );
    3131    delete_option( 'wponlinebackup_network_activated' );
     32    delete_option( 'wponlinebackup_check_tables' );
    3233
    3334    // 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`' );
    4142
    4243    // 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`' );
    4445
    4546}
  • wponlinebackup/trunk/wponlinebackup.php

    r768959 r774874  
    776776        $existing = get_option( 'wponlinebackup_schedule', array() );
    777777
     778        // Delta add missing settings
     779        foreach ( $existing as $key => $value )
     780            if ( array_key_exists( $key, $schedule ) )
     781                $schedule[ $key ] = $value;
     782
    778783        // For schedule, we leave alone apart from backup_filesystem, which used to default to off when we set up the plugin
    779784        // 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;
    782787
    783788        // 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!
    784789        add_option( 'wponlinebackup_schedule', $schedule, '', 'no' );
    785         update_option( 'wponlinebackup_schedule', $existing );
     790        update_option( 'wponlinebackup_schedule', $schedule );
    786791
    787792        // Add / update the check tables option - auto-load since we use it every load
Note: See TracChangeset for help on using the changeset viewer.