From f111cc74b2015340fe0200fb8253f8d0d4feb015 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 18 Oct 2008 20:58:19 +0000 Subject: [PATCH] Don't schedule update events while installing. Props rdworth and tott. fixes #7724 git-svn-id: http://svn.automattic.com/wordpress/trunk@9244 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/update.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/update.php b/wp-includes/update.php index c79cd6116f..ebb9c0d193 100644 --- a/wp-includes/update.php +++ b/wp-includes/update.php @@ -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'); ?>