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: https://develop.svn.wordpress.org/trunk@19021 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-10-20 00:15:21 +00:00
parent 420fe65fca
commit 4a275d129d

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' );