Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#40384 closed enhancement (fixed)

Add network ID parameter to `wp_maybe_update_network_site_counts()`

Reported by: flixos90's profile flixos90 Owned by: flixos90's profile flixos90
Milestone: 4.8 Priority: normal
Severity: normal Version:
Component: Networks and Sites Keywords: has-patch
Focuses: multisite Cc:


Once wp_update_network_site_counts() supports a $network_id parameter (see #37528), we can add that parameter to wp_maybe_update_network_site_counts() as well.

Attachments (1)

40384.diff (941 bytes) - added by flixos90 7 years ago.

Download all attachments as: .zip

Change History (6)

This ticket was mentioned in Slack in #core-multisite by flixos90. View the logs.

7 years ago

#2 @flixos90
7 years ago

  • Owner set to flixos90
  • Status changed from new to assigned

7 years ago

#3 @flixos90
7 years ago

  • Keywords has-patch added; needs-patch removed

40384.diff adds the $network_id parameter to the function.

#4 @flixos90
7 years ago

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

In 40591:

Multisite: Add $network_id parameter to wp_maybe_update_network_site_counts().

This allows calling the function for a specific network correctly, for example after a site has been created for it or been removed from it.

Fixes #40384. See #38699.

#5 @flixos90
7 years ago

In 40592:

Multisite: Add missing documentation for new $network_id parameter of wp_maybe_update_network_site_counts().

This was overlooked in [40591].

See #40384.

Note: See TracTickets for help on using tickets.