Backup plugin fixes.
git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@3820 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1cf5d38c2e
commit
61551a5880
|
@ -58,7 +58,6 @@ class wpdbBackup {
|
||||||
if ( !current_user_can('import') ) die(__('You are not allowed to perform backups.'));
|
if ( !current_user_can('import') ) die(__('You are not allowed to perform backups.'));
|
||||||
add_action('init', array(&$this, 'init'));
|
add_action('init', array(&$this, 'init'));
|
||||||
} else {
|
} else {
|
||||||
if ( !current_user_can('import') ) die(__('You are not allowed to perform backups.'));
|
|
||||||
add_action('admin_menu', array(&$this, 'admin_menu'));
|
add_action('admin_menu', array(&$this, 'admin_menu'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -884,6 +883,11 @@ class wpdbBackup {
|
||||||
} // wp_cron_db_backup
|
} // 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