Don't fire update checks for ajax requests. Props mitchoyoshitaka. fixes #13732
git-svn-id: https://develop.svn.wordpress.org/trunk@19693 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d43d6e5765
commit
b0f5b628cc
@ -431,7 +431,7 @@ function wp_schedule_update_checks() {
|
|||||||
wp_schedule_event(time(), 'twicedaily', 'wp_update_themes');
|
wp_schedule_event(time(), 'twicedaily', 'wp_update_themes');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! is_main_site() && ! is_network_admin() )
|
if ( ( ! is_main_site() && ! is_network_admin() ) || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
add_action( 'admin_init', '_maybe_update_core' );
|
add_action( 'admin_init', '_maybe_update_core' );
|
||||||
|
Loading…
Reference in New Issue
Block a user