WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 20 months ago

Last modified 20 months 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 3 years ago.
16579-3.5.patch (468 bytes) - added by georgestephanis 22 months ago.
Refreshing patch to apply cleanly.

Download all attachments as: .zip

Change History (9)

kerekesjoco3 years ago

comment:1 scribu3 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 scribu3 years ago

I updated the Codex page. Thanks for reporting.

comment:3 ryan3 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 SergeyBiryukov3 years ago

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 3 years ago by SergeyBiryukov (next)

georgestephanis22 months ago

Refreshing patch to apply cleanly.

comment:5 wonderboymusic20 months ago

In what case does this not already happen?

comment:6 SergeyBiryukov20 months 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 SergeyBiryukov20 months ago

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