From b0f5b628cc6a726e3e497e5ccbc0a4900ecb8aad Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 5 Jan 2012 22:46:32 +0000 Subject: [PATCH] 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 --- 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 8d563e9e51..4a6278528f 100644 --- a/wp-includes/update.php +++ b/wp-includes/update.php @@ -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' );