[wp-trac] [WordPress Trac] #31265: Metadata 'orderby' parity across query classes

WordPress Trac noreply at wordpress.org
Sat Mar 7 16:05:13 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:"31663"]:
 {{{
 #!CommitTicketReference repository="" revision="31663"
 Improve 'orderby' syntax for `WP_User_Query`.

 This changeset ports a number of 'orderby' features from `WP_Query` and
 `WP_Comment_Query`:

 * Allow multiple 'orderby' values to be passed as a space-separated list.
 * Allow multiple 'orderby' values to be passed as a flat array.
 * Allow multi-dimensional 'orderby', with orderby fields as array keys and
 ASC/DESC as the corresponding values.

 See #31265.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31265#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list