Opened 2 years ago

Closed 9 months ago

Last modified 9 months ago

#16579 closed defect (bug) (invalid)

$groupby should be set for 'meta_query' too

Reported by: kerekesjoco Owned by:
Priority: normal Milestone:
Component: Query Version: 3.1
Severity: normal Keywords: has-patch reporter-feedback
Cc: joco@…

Description (last modified by scribu)

See patch.

Attachments (2)

query.patch (409 bytes) - added by kerekesjoco 2 years ago.
16579-3.5.patch (468 bytes) - added by georgestephanis 11 months ago.
Refreshing patch to apply cleanly.

Download all attachments as: .zip

Change History (9)

  • Description modified (diff)
  • Keywords has-patch 3.2-early added; needs-patch needs-docs dev-feedback removed
  • Milestone changed from Awaiting Review to Future Release
  • Summary changed from Custom fields Query to $groupby should be set for 'meta_query' too

I updated the Codex page. Thanks for reporting.

comment:3   ryan2 years ago

Could we describe the symptoms, provide sample code that exhibits the problem, and link to whatever codex page was updated. This ticket jumps right to the fix. :-)

http://codex.wordpress.org/Function_Reference/query_posts#Custom_Field_Parameters

meta_query is array of arrays (was a simple array in the example).

Version 0, edited 2 years ago by SergeyBiryukov (next)

Refreshing patch to apply cleanly.

In what case does this not already happen?

  • Keywords 3.2-early removed
  • Milestone Future Release deleted
  • Resolution set to invalid
  • Severity changed from major to normal
  • Status changed from new to closed

The code in question was altered in [17699].

Feel free to reopen with more information if there's still a problem.

  • Keywords reporter-feedback added
Note: See TracTickets for help on using tickets.