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

WordPress Trac noreply at wordpress.org
Fri Apr 15 17:46:16 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):

 Replying to [comment:12 spacedmonkey]:
 > I think it should be an option to select what format the function
 returns.

 Sounds good, we just need to make sure that ARRAY_A is the default.

 > As for count, I don't agree with your change. This class is based on
 wp_comment_query, which does have count. I think this shouldn't change.

 Yes, I just saw it today that WP_Comment_Query has a count parameter. I
 was referring to the get_terms() function when proposing that change.

 I personally prefer to have it as a possible value for fields since one
 parameter to modify the type of output should be sufficient. For example,
 using both the fields and count parameters in one query wouldn't make
 sense.

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


More information about the wp-trac mailing list