Don't schedule update events while installing. Props rdworth and tott. fixes #7724

git-svn-id: https://develop.svn.wordpress.org/trunk@9244 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-10-18 20:58:19 +00:00
parent b406bec607
commit 1bc5d52b4c
1 changed files with 2 additions and 2 deletions

View File

@ -273,11 +273,11 @@ add_action( 'wp_update_plugins', 'wp_update_plugins' );
add_action( 'admin_init', '_maybe_update_themes' );
add_action( 'wp_update_themes', 'wp_update_themes' );
if ( !wp_next_scheduled('wp_update_plugins') )
if ( !wp_next_scheduled('wp_update_plugins') && !defined('WP_INSTALLING') )
wp_schedule_event(time(), 'twicedaily', 'wp_update_plugins');
if ( !wp_next_scheduled('wp_update_themes') )
if ( !wp_next_scheduled('wp_update_themes') && !defined('WP_INSTALLING') )
wp_schedule_event(time(), 'twicedaily', 'wp_update_themes');
?>