Make WordPress Core


Ignore:
Timestamp:
04/20/2017 12:26:30 AM (7 years ago)
Author:
flixos90
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-functions.php

    r40485 r40486  
    22752275 *
    22762276 * @since 3.1.0
    2277  */
    2278 function wp_update_network_counts() {
    2279     wp_update_network_user_counts();
    2280     wp_update_network_site_counts();
     2277 * @since 4.8.0 The $network_id parameter has been added.
     2278 *
     2279 * @param int|null $network_id ID of the network. Default is the current network.
     2280 */
     2281function wp_update_network_counts( $network_id = null ) {
     2282    wp_update_network_user_counts( $network_id );
     2283    wp_update_network_site_counts( $network_id );
    22812284}
    22822285
Note: See TracChangeset for help on using the changeset viewer.