diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index e024789052..d209435fd3 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -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 ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 6b9e9f4b88..9d9026d4aa 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.