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:
Gary Pendergast 2019-02-07 06:04:51 +00:00
parent bbbf0ee62e
commit c2c021baf1
2 changed files with 4 additions and 1 deletions

View File

@ -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();

View File

@ -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.