Make WordPress Core

Opened 2 weeks ago

#44305 new defect (bug)

The 'fields' query parameter for WP_Query supports only a string

Reported by: ocean90 Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Query Keywords: needs-patch good-first-bug
Focuses: docs Cc:


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.

Attachments (1)

44305.diff (2.1 KB) - added by palmiak 11 days ago.

Download all attachments as: .zip

Change History (1)

11 days ago

Note: See TracTickets for help on using tickets.