mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
Multisite: Replace calls to refresh_blog_details()
with clean_blog_cache()
.
Fixes #42077. See #40201. Built from https://develop.svn.wordpress.org/trunk@41717 git-svn-id: http://core.svn.wordpress.org/trunk@41551 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a9b8f70682
commit
1130241bbd
@ -1260,7 +1260,7 @@ function upgrade_280() {
|
||||
}
|
||||
$start += 20;
|
||||
}
|
||||
refresh_blog_details();
|
||||
clean_blog_cache( get_current_blog_id() );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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 ) {
|
||||
|
@ -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 );
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.9-alpha-41716';
|
||||
$wp_version = '4.9-alpha-41717';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
x
Reference in New Issue
Block a user