From 0f4725a0e3c141cc43c9dca9c4f5b892236c5555 Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Wed, 10 May 2017 23:22:42 +0000 Subject: [PATCH] Multisite: Adjust site count of the correct network after having created a new site. Prior to this change, after creating a site, the network site count was always refreshed on the current network, regardless of whether the site was created on a different network. With the recent changes, particularly [40591], it is now possible to update the site count for a specific `$network_id`, so this changeset makes use of the new parameter. Fixes #38699. Built from https://develop.svn.wordpress.org/trunk@40612 git-svn-id: http://core.svn.wordpress.org/trunk@40482 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/ms-functions.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index 16cb294359..20a183d7da 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -1375,7 +1375,7 @@ function insert_blog($domain, $path, $site_id) { $blog_id = $wpdb->insert_id; refresh_blog_details( $blog_id ); - wp_maybe_update_network_site_counts(); + wp_maybe_update_network_site_counts( $site_id ); return $blog_id; } diff --git a/wp-includes/version.php b/wp-includes/version.php index a7bd02f128..f1d376e7b7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-40611'; +$wp_version = '4.8-alpha-40612'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.