From 6a4ddffe0f046b3c163edc32f72f81d58663e600 Mon Sep 17 00:00:00 2001 From: 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: http://svn.automattic.com/wordpress/trunk@19021 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 61d7ca3dc..028a4d138 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' );