Attach update hooks in the network admin. Accounts for the rare situation where the network admin is not the main site. props johnbillion, see #18876.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19021 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-10-20 00:15:21 +00:00
parent 3e61e179d9
commit 6a4ddffe0f
1 changed files with 1 additions and 1 deletions

View File

@ -395,7 +395,7 @@ function wp_schedule_update_checks() {
wp_schedule_event(time(), 'twicedaily', 'wp_update_themes');
}
if ( ! is_main_site() )
if ( ! is_main_site() && ! is_network_admin() )
return;
add_action( 'admin_init', '_maybe_update_core' );