[wp-trac] [WordPress Trac] #16814: WP_Query doesn't check orderby for meta_query
WordPress Trac
noreply at wordpress.org
Wed Oct 8 15:11:16 UTC 2014
#16814: WP_Query doesn't check orderby for meta_query
------------------------------+------------------------
Reporter: dalesaurus | Owner: kovshenin
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.1
Component: Query | Version: 3.1
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+------------------------
Changes (by kovshenin):
* owner: => kovshenin
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"29855"]:
{{{
#!CommitTicketReference repository="" revision="29855"
Use the primary `meta_query` clause when parsing `orderby` in `WP_Query`.
When using legacy `meta_key`, `meta_value`, etc. arguments in `WP_Query`,
they're converted into the first clause of a `meta_query`. By using that
clause instead of the original arguments, we make sure that behavior is
consistent between the two available formats.
props boonebgorges.
fixes #16814.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/16814#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list