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

WordPress Trac noreply at wordpress.org
Mon Jul 7 15:44:00 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):

 Why on earth do we still have `addslashes_gpc()` in use here? Yikes. It's
 the only place in core we use this function.

 That aside, wonderboymusic's suggested syntax is much better. +1 from me.

 Another small note, I don't like the post fields in the allowed keys array
 not having a `post_` prefix. We should support both (ie. `type` and
 `post_type`).

 We can still get this into 4.0. Tweaked patch coming up.

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


More information about the wp-trac mailing list