[wp-trac] [WordPress Trac] #31265: Metadata 'orderby' parity across query classes
WordPress Trac
noreply at wordpress.org
Sat Mar 7 18:37:08 UTC 2015
#31265: Metadata 'orderby' parity across query classes
----------------------------+-----------------------------
Reporter: boonebgorges | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: Future Release
Component: Query | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
----------------------------+-----------------------------
Comment (by boonebgorges):
In [changeset:"31669"]:
{{{
#!CommitTicketReference repository="" revision="31669"
Improved 'orderby' meta syntax in `WP_User_Query`.
Recent commits have added the ability to order query results by specific
clauses of the 'meta_query' parameter (comments [31467], posts [31312] and
[31340]). The current changeset ports the same functionality to
`WP_User_Query`.
Also introduced is the ability to pass the value of `$meta_key` to
'orderby'.
The internals of `WP_User_Query::prepare_users()` had to be reordered
somewhat to support these changes, primarily to ensure that the
`meta_query`
object generates its SQL clauses before the 'orderby' parameter is parsed.
See #31265.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31265#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list