[wp-trac] [WordPress Trac] #24687: WP_Query applies `order` only to last key in `orderby`
WordPress Trac
noreply at wordpress.org
Thu Jul 4 16:57:45 UTC 2013
#24687: WP_Query applies `order` only to last key in `orderby`
-------------------------+-----------------------------
Reporter: andy | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: trunk
Severity: normal | Keywords:
-------------------------+-----------------------------
If you need something like `ORDER BY menu_order DESC, ID DESC` you are
forced to use filters. Instead let's allow `orderby` to specify either
`ASC` or `DESC` for each key. Furthermore let's allow `orderby` to be
written naturally with spaces and/or commas (while not strictly checking
their correctness as SQL).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24687>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list