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

WordPress Trac noreply at wordpress.org
Wed Apr 13 23:14:41 UTC 2016


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

Comment (by flixos90):

 @spacedmonkey
 Patch looks great so far, I played around with it quite a bit!

 In [attachment:35791.3.patch] I applied two minor adjustments:

 * I applied a fix in `wp_get_sites()` to make the code backwards-
 compatible (the function must return an array of associative arrays)
 * I removed the `count` argument and replaced it by a possible value
 `count` in the `fields` argument, similar to the functionality of
 `get_terms()` for example - returning a count is basically also an
 alternative `fields` specification although technically not a field

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


More information about the wp-trac mailing list