WordPress.org

Make WordPress Core

Opened 4 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 4 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)

@kerekesjoco4 years ago

comment:1 @scribu4 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

comment:2 @scribu4 years ago

I updated the Codex page. Thanks for reporting.

comment:3 @ryan4 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. :-)

comment:4 @SergeyBiryukov4 years ago

Replying to ryan:

link to whatever codex page was updated

http://codex.wordpress.org/index.php?title=Function_Reference/query_posts&diff=100662&oldid=100579

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

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

@georgestephanis3 years ago

Refreshing patch to apply cleanly.

comment:5 @wonderboymusic3 years ago

In what case does this not already happen?

comment:6 @SergeyBiryukov3 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.

comment:7 @SergeyBiryukov3 years ago

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