Backup plugin fixes.
git-svn-id: https://develop.svn.wordpress.org/trunk@3818 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bdfd1b33b2
commit
e1c5fcd0c1
@ -60,7 +60,6 @@ class wpdbBackup {
|
||||
if ( !current_user_can('import') ) die(__('You are not allowed to perform backups.'));
|
||||
add_action('init', array(&$this, 'init'));
|
||||
} else {
|
||||
if ( !current_user_can('import') ) die(__('You are not allowed to perform backups.'));
|
||||
add_action('admin_menu', array(&$this, 'admin_menu'));
|
||||
}
|
||||
}
|
||||
@ -883,6 +882,13 @@ class wpdbBackup {
|
||||
} // wp_cron_db_backup
|
||||
}
|
||||
|
||||
$mywpdbbackup = new wpdbBackup();
|
||||
function wpdbBackup_init() {
|
||||
global $mywpdbbackup;
|
||||
$mywpdbbackup = new wpdbBackup();
|
||||
}
|
||||
|
||||
add_action('plugins_loaded', 'wpdbBackup_init');
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user