[wp-trac] [WordPress Trac] #35791: WP_Site_Query class

WordPress Trac noreply at wordpress.org
Thu May 5 05:17:26 UTC 2016


#35791: WP_Site_Query class
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:  jeremyfelt
     Type:  task (blessed)                       |      Status:  reviewing
 Priority:  normal                               |   Milestone:  4.6
Component:  Networks and Sites                   |     Version:  4.4
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing needs-unit-  |     Focuses:  multisite
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by jeremyfelt):

 After some discussion in core chat today and a full search against the
 plugin repository, we're good to use `get_sites()` for `WP_Site_Query`.
 This is nice because it will let us return an array of objects and then
 work to deprecate `wp_get_sites()` as a wrapper for `get_sites()` in the
 future.

 There is one plugin that declares its own `get_sites()`, but we can reach
 out and work with that author to resolve ahead of time.

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


More information about the wp-trac mailing list