mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00: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: https://develop.svn.wordpress.org/trunk@19021 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
420fe65fca
commit
4a275d129d
@ -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