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

fixes #30947.

git-svn-id: https://develop.svn.wordpress.org/trunk@31701 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2015-03-10 19:29:31 +00:00
parent 9aba4766fc
commit 8f0910aee4
2 changed files with 23 additions and 22 deletions
-4
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;
}