mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
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:
parent
3e61e179d9
commit
6a4ddffe0f
@ -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' );
|
||||
|
Loading…
Reference in New Issue
Block a user