[wp-trac] [WordPress Trac] #44200: Jumbled parameter documentation in `WP_Term_Query`

WordPress Trac noreply at wordpress.org
Wed May 23 01:54:36 UTC 2018


#44200: Jumbled parameter documentation in `WP_Term_Query`
--------------------------+-----------------------------
 Reporter:  dlh           |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:  4.7
 Severity:  normal        |   Keywords:  has-patch
  Focuses:  docs          |
--------------------------+-----------------------------
 The `WP_Term_Query::$fields` parameter is currently documented as
 accepting:

     'all_with_object_id' (returns an array of term objects with the
 'object_id' param; only works when the `$fields` parameter is 'object_ids'
 )

 But I'm not sure how that could be the case. It looks to me like the
 intent is to note that `all_with_object_id` works only when the
 `$object_ids` parameter is passed.

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


More information about the wp-trac mailing list