From 4a275d129d1442365bd0fde0dcc7540c10e7f3fa Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 20 Oct 2011 00:15:21 +0000 Subject: [PATCH] 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 --- wp-includes/update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/update.php b/wp-includes/update.php index 61d7ca3dcc..028a4d138e 100644 --- a/wp-includes/update.php +++ b/wp-includes/update.php @@ -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' );