コード例 #1
0
            foreach ($crons as $timestamp => &$cron) {
                if (isset($cron[$hook])) {
                    unset($cron[$hook]);
                }
                if (empty($cron)) {
                    unset($crons[$timestamp]);
                }
            }
        }
    }
    update_option('cron', $crons);
}
// ********** END 6.4.0.12 UPGRADE **********
// ********** BEGIN 6.4.0.13 UPGRADE **********
require_once pb_backupbuddy::plugin_path() . '/classes/housekeeping.php';
backupbuddy_housekeeping::remove_wp_schedules_with_no_bb_schedule();
// Handles upgrading schedule tags, housekeeping tag, and removal of faulty old tags.
// ********** END 6.4.0.13 UPGRADE **********
// ********** BEGIN 6.4.0.21 UPGRADE **********
pb_backupbuddy::$options['data_version'] = '13';
pb_backupbuddy::save();
// ********** END 6.4.0.21 UPGRADE **********
// ***** MISC BELOW *****
// Remote any saved plaintext confirmation of importbuddy password.
if (isset(pb_backupbuddy::$options['importbuddy_pass_hash_confirm'])) {
    unset(pb_backupbuddy::$options['importbuddy_pass_hash_confirm']);
    pb_backupbuddy::save();
}
// MISC SETUP:
// Set up default error email notification email address if none is set.
if (pb_backupbuddy::$options['email_notify_error'] == '') {