From d54e80111ace1b55083b197d28732ff5e5b4b6dd Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Tue, 3 Oct 2017 19:04:57 +0000 Subject: [PATCH] Multisite: Replace calls to `refresh_blog_details()` with `clean_blog_cache()`. Fixes #42077. See #40201. git-svn-id: https://develop.svn.wordpress.org/trunk@41717 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/upgrade.php | 2 +- src/wp-includes/ms-blogs.php | 4 ++-- src/wp-includes/ms-functions.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/includes/upgrade.php b/src/wp-admin/includes/upgrade.php index 96c8abb74e..f439bcf6da 100644 --- a/src/wp-admin/includes/upgrade.php +++ b/src/wp-admin/includes/upgrade.php @@ -1260,7 +1260,7 @@ function upgrade_280() { } $start += 20; } - refresh_blog_details(); + clean_blog_cache( get_current_blog_id() ); } } diff --git a/src/wp-includes/ms-blogs.php b/src/wp-includes/ms-blogs.php index 8889d86e9e..e1f9c14d6f 100644 --- a/src/wp-includes/ms-blogs.php +++ b/src/wp-includes/ms-blogs.php @@ -410,7 +410,7 @@ function update_blog_details( $blog_id, $details = array() ) { restore_current_blog(); } - refresh_blog_details($blog_id); + clean_blog_cache( $blog_id ); return true; } @@ -1129,7 +1129,7 @@ function update_blog_status( $blog_id, $pref, $value, $deprecated = null ) { if ( false === $result ) return false; - refresh_blog_details( $blog_id ); + clean_blog_cache( $blog_id ); if ( 'spam' == $pref ) { if ( $value == 1 ) { diff --git a/src/wp-includes/ms-functions.php b/src/wp-includes/ms-functions.php index 1f46bf0b0e..ea2fec15c8 100644 --- a/src/wp-includes/ms-functions.php +++ b/src/wp-includes/ms-functions.php @@ -1407,7 +1407,7 @@ function insert_blog($domain, $path, $network_id) { return false; $blog_id = $wpdb->insert_id; - refresh_blog_details( $blog_id ); + clean_blog_cache( $blog_id ); wp_maybe_update_network_site_counts( $network_id );