[wp-trac] [WordPress Trac] #17065: Independent ASC/DESC in multiple ORDER BY statement.

WordPress Trac noreply at wordpress.org
Mon Jul 7 22:25:48 UTC 2014


#17065: Independent ASC/DESC in multiple ORDER BY statement.
-------------------------+-----------------------
 Reporter:  ericmann     |       Owner:  ericmann
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.0
Component:  Query        |     Version:  3.1
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------

Comment (by johnbillion):

 [attachment:17065.5.diff] builds upon wonderboymusic's latest patch:

  * Always cast the order to `ASC` or `DESC`
  * Allow `post_` prefixed post fields in the allowed keys for `orderby`
  * Allow empty array or boolean false to blank out the orderby clause

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


More information about the wp-trac mailing list