[wp-trac] [WordPress Trac] #37528: Add network ID parameter to wp_update_network_site_counts()

WordPress Trac noreply at wordpress.org
Sat Jul 30 19:04:36 UTC 2016


#37528: Add network ID parameter to wp_update_network_site_counts()
--------------------------------+----------------------------------------
 Reporter:  johnjamesjacoby     |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Networks and Sites  |    Version:  trunk
 Severity:  normal              |   Keywords:  needs-patch good-first-bug
  Focuses:  multisite           |
--------------------------------+----------------------------------------
 Now that `wp_update_network_site_counts()` uses `get_sites()` internally,
 we can now consider passing a `network_id` parameter through.

 Currently, we assume `$wpdb->siteid` which I think is a fine fallback,
 though we could also consider using `get_current_network_id()` if we felt
 like not exposing the `$wpdb` global.

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


More information about the wp-trac mailing list