[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 16:14:42 UTC 2017


#40703: Adjust the `add_filter()` calls for `wp_maybe_update_*_counts()` in `ms-
default-filters.php`
--------------------------------+-------------------------
 Reporter:  flixos90            |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  4.8
Component:  Networks and Sites  |    Version:  trunk
 Severity:  normal              |   Keywords:  needs-patch
  Focuses:  multisite           |
--------------------------------+-------------------------
 Now that `wp_maybe_update_network_site_counts()` and
 `wp_maybe_update_network_user_counts()` support a `$network_id` parameter,
 we should ensure that no parameter is passed to it when hooking it into a
 filter. For example, the `make_*_blog` hooks pass a site ID, which is
 currently passed to the hooked `wp_maybe_update_network_site_counts()`
 function, although its only parameter should be a network ID.

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


More information about the wp-trac mailing list