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:
Ryan Boren 2012-01-05 22:46:32 +00:00
parent d43d6e5765
commit b0f5b628cc
1 changed files with 1 additions and 1 deletions

View File

@ -431,7 +431,7 @@ function wp_schedule_update_checks() {
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;
add_action( 'admin_init', '_maybe_update_core' );