Make WordPress Core

Opened 5 years ago

Closed 3 years ago

Last modified 3 years ago

#16579 closed defect (bug) (invalid)

$groupby should be set for 'meta_query' too

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

Description (last modified by scribu)

See patch.

Attachments (2)

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

Download all attachments as: .zip

Change History (9)

5 years ago

#1 @scribu
5 years ago

  • 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

#2 @scribu
5 years ago

I updated the Codex page. Thanks for reporting.

#3 @ryan
5 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. :-)

#4 @SergeyBiryukov
5 years ago

Replying to ryan:

link to whatever codex page was updated


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

Last edited 3 years ago by SergeyBiryukov (previous) (diff)

3 years ago

Refreshing patch to apply cleanly.

#5 @wonderboymusic
3 years ago

In what case does this not already happen?

#6 @SergeyBiryukov
3 years ago

  • 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.

#7 @SergeyBiryukov
3 years ago

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