From 58491221743a5a97aa68ecd4ae869d0ae894b73e Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@19693 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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' );