Don't run update checks for AJAX requests after [31168].

fixes #30947.
Built from https://develop.svn.wordpress.org/trunk@31701


git-svn-id: http://core.svn.wordpress.org/trunk@31682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2015-03-10 19:30:27 +00:00
parent 5de66d4176
commit 74dfb2680b
3 changed files with 24 additions and 23 deletions

View File

@@ -663,7 +663,3 @@ function wp_clean_update_cache() {
wp_clean_themes_cache();
delete_site_transient( 'update_core' );
}
if ( ( ! is_main_site() && ! is_network_admin() ) || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
return;
}