mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-06 17:29:05 +00:00
Multisite: Add $network_id parameter to wp_update_network_counts().
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. git-svn-id: https://develop.svn.wordpress.org/trunk@40486 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user