From c2c021baf10242e1c863e00b7a4dc53e2abd865d Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Thu, 7 Feb 2019 06:04:51 +0000 Subject: [PATCH] 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 --- wp-includes/ms-site.php | 3 +++ wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/ms-site.php b/wp-includes/ms-site.php index f26773ac8d..60d1f29035 100644 --- a/wp-includes/ms-site.php +++ b/wp-includes/ms-site.php @@ -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(); diff --git a/wp-includes/version.php b/wp-includes/version.php index 678b3fb203..69bfae46c1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.