[wp-trac] [WordPress Trac] #40703: Adjust the `add_filter()` calls for `wp_maybe_update_*_counts()` in `ms-default-filters.php`

WordPress Trac noreply at wordpress.org
Tue May 9 17:14:10 UTC 2017


#40703: Adjust the `add_filter()` calls for `wp_maybe_update_*_counts()` in `ms-
default-filters.php`
--------------------------------+------------------------
 Reporter:  flixos90            |       Owner:  flixos90
     Type:  defect (bug)        |      Status:  closed
 Priority:  normal              |   Milestone:  4.8
Component:  Networks and Sites  |     Version:  trunk
 Severity:  normal              |  Resolution:  fixed
 Keywords:  has-patch commit    |     Focuses:  multisite
--------------------------------+------------------------
Changes (by flixos90):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"40596"]:
 {{{
 #!CommitTicketReference repository="" revision="40596"
 Multisite: Fix filter hooks for the updating network count functions.

 [40591] and [40593] introduced a `$network_id` parameter for
 `wp_maybe_update_network_site_counts()` and
 `wp_maybe_update_network_user_counts()`, as well as [40486] previously
 added it to `wp_update_network_counts()`. This changeset ensures the
 filter hooks in `ms-default-filters.php` do not pass any parameter to them
 that might conflict with their actual `$network_id` parameter, which
 caused unit test failures before.

 Fixes #40703.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40703#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list