WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#40386 closed enhancement (fixed)

Add network ID parameter to `wp_update_network_counts()`

Reported by: flixos90 Owned by: flixos90
Milestone: 4.8 Priority: normal
Severity: normal Version:
Component: Networks and Sites Keywords: has-patch has-unit-tests commit
Focuses: multisite Cc:

Description

Once wp_update_network_site_counts() and wp_update_network_user_counts() support a $network_id parameter (see #37528 and #40349), we can add that parameter to wp_update_network_counts() as well.

Attachments (1)

40386.diff (2.0 KB) - added by flixos90 4 years ago.

Download all attachments as: .zip

Change History (3)

@flixos90
4 years ago

#1 @flixos90
4 years ago

  • Keywords has-patch has-unit-tests commit added; needs-patch removed
  • Owner set to flixos90
  • Status changed from new to assigned

40386.diff adds the $network_id parameter and tests.

#2 @flixos90
4 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 40486:

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.

Note: See TracTickets for help on using tickets.