Skip to content

Commit

Permalink
Multisite: Add $network_id parameter to wp_update_network_counts().
Browse files Browse the repository at this point in the history
After the `$network_id` parameter has been introduced for `wp_update_network_site_counts()` in [40484] and `wp_update_network_user_counts()` in [40485], the new parameter can now also be used on the wrapping function.

Fixes #40386. See #38699.

Built from https://develop.svn.wordpress.org/trunk@40486


git-svn-id: http://core.svn.wordpress.org/trunk@40362 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
Felix Arntz committed Apr 20, 2017
1 parent 79be8df commit 9c8bf59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions wp-includes/ms-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2274,10 +2274,13 @@ function wp_schedule_update_network_counts() {
* Update the network-wide counts for the current network.
*
* @since 3.1.0
* @since 4.8.0 The $network_id parameter has been added.
*
* @param int|null $network_id ID of the network. Default is the current network.
*/
function wp_update_network_counts() {
wp_update_network_user_counts();
wp_update_network_site_counts();
function wp_update_network_counts( $network_id = null ) {
wp_update_network_user_counts( $network_id );
wp_update_network_site_counts( $network_id );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-40485';
$wp_version = '4.8-alpha-40486';

/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
Expand Down

0 comments on commit 9c8bf59

Please sign in to comment.