Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#44200 closed defect (bug) (fixed)

Jumbled parameter documentation in `WP_Term_Query`

Reported by: dlh's profile dlh Owned by: boonebgorges's profile boonebgorges
Milestone: 5.1 Priority: normal
Severity: normal Version: 4.7
Component: Taxonomy Keywords: has-patch
Focuses: docs Cc:

Description

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.

Attachments (1)

44200.diff (1.3 KB) - added by dlh 7 years ago.

Download all attachments as: .zip

Change History (4)

@dlh
7 years ago

#1 @boonebgorges
7 years ago

  • Milestone changed from Awaiting Review to 5.0

@dlh You read my mind. Thanks for the patch.

#2 @boonebgorges
7 years ago

  • Owner set to boonebgorges
  • Resolution set to fixed
  • Status changed from new to closed

In 43308:

Taxonomy: Fix $object_ids reference in WP_Term_Query parameter documentation.

Props dlh.
Fixes #44200.

#3 @johnbillion
7 years ago

  • Milestone changed from 5.0 to 5.1
Note: See TracTickets for help on using tickets.