[wp-trac] [WordPress Trac] #44305: The 'fields' query parameter for WP_Query supports only a string

WordPress Trac noreply at wordpress.org
Tue Jun 5 08:55:20 UTC 2018


#44305: The 'fields' query parameter for WP_Query supports only a string
--------------------------+----------------------------------------
 Reporter:  ocean90       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Future Release
Component:  Query         |    Version:
 Severity:  normal        |   Keywords:  needs-patch good-first-bug
  Focuses:  docs          |
--------------------------+----------------------------------------
 In the DocBlock of `WP_Query::parse_query()` the type of `$fields` is
 currently documented as `string|array` but it's only a `string` as it only
 accepts `'ids'` and `'id=>parent'`. Looks like it has been copied from
 `WP_User_Query`.

 Related: #19866.

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


More information about the wp-trac mailing list