[wp-trac] [WordPress Trac] #31148: Extend wp_get_sites() to support queries on domain and path

WordPress Trac noreply at wordpress.org
Thu Mar 10 22:18:13 UTC 2016

#31148: Extend wp_get_sites() to support queries on domain and path
 Reporter:  earnjam                              |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Networks and Sites                   |  Release
 Severity:  normal                               |     Version:
 Keywords:  needs-testing has-patch 4.6-early    |  Resolution:
  needs-unit-tests                               |     Focuses:  multisite

Comment (by spacedmonkey):

 Replying to [comment:11 jeremyfelt]:

 > I think things are in a nice place. Some unit tests would be helpful as
 well. It would also be interesting to start iterating on this now into a
 `WP_Site_Query` for 4.6 rather than waiting.

 Not exactly sure what you mean here? Do you mean continue on this patch or
 drop it and continue on with `WP_Site_Query` work?

 Are people happy with the new params? network_id, site_id, path and domain
 all allow arrays passed to them. Should we add `*__in` params to bring it
 into line with other functions like get_posts?

 I have updated patch with feedback. I have kept domain, as I think there
 is a valid use for returning that. :D

Ticket URL: <https://core.trac.wordpress.org/ticket/31148#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list