mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01:00
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
This commit is contained in:
parent
3fc6097a5a
commit
f111cc74b2
@ -273,11 +273,11 @@ add_action( 'wp_update_plugins', 'wp_update_plugins' );
|
|||||||
add_action( 'admin_init', '_maybe_update_themes' );
|
add_action( 'admin_init', '_maybe_update_themes' );
|
||||||
add_action( 'wp_update_themes', 'wp_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');
|
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');
|
wp_schedule_event(time(), 'twicedaily', 'wp_update_themes');
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user