[wp-trac] [WordPress Trac] #31045: Ordering a Query Using Multiple Meta Keys

WordPress Trac noreply at wordpress.org
Sat Jan 31 15:19:13 UTC 2015


#31045: Ordering a Query Using Multiple Meta Keys
-----------------------------+---------------------------
 Reporter:  Funkatronic      |       Owner:  boonebgorges
     Type:  feature request  |      Status:  reviewing
 Priority:  normal           |   Milestone:  4.2
Component:  Query            |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+---------------------------
Changes (by boonebgorges):

 * owner:   => boonebgorges
 * status:  new => reviewing
 * milestone:  Future Release => 4.2


Comment:

 Thanks for your continued work on this, Funkatronic. It's funny - your
 "lapse in coding judgment" actually worked, because the
 `array_key_exists()` check would resolve to true or false as appropriate,
 meaning that the previous logic actually worked, though of course it was
 not straightforward and perhaps accidental :)

 Regarding the 'parse_orderby' filter: I'm going to remove it, as per our
 informal policy of not adding filters to SQL fragments unless they're
 absolutely necessary. Anyway, there is already a filter 'posts_orderby'
 that does essentially the same thing.

 I'm going to do a bit more documentation cleanup and review, and then I
 think we're good to go with this. Thanks for the ticket and for the help
 in getting this enhancement ready to go.

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


More information about the wp-trac mailing list