Multisite: After creating a new blog, ensure the blog cache is correctly cleaned up.
Props david.binda, spacedmonkey. Fixes #46125. Built from https://develop.svn.wordpress.org/trunk@44727 git-svn-id: http://core.svn.wordpress.org/trunk@44558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bbbf0ee62e
commit
c2c021baf1
|
@ -723,6 +723,9 @@ function wp_initialize_site( $site_id, array $args = array() ) {
|
|||
)
|
||||
);
|
||||
|
||||
// Clean blog cache after populating options.
|
||||
clean_blog_cache( $site );
|
||||
|
||||
// Populate the site's roles.
|
||||
populate_roles();
|
||||
$wp_roles = new WP_Roles();
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.1-beta3-44726';
|
||||
$wp_version = '5.1-beta3-44727';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue