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
This commit is contained in:
parent
5310efaf61
commit
0f4725a0e3
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue