[wp-trac] [WordPress Trac] #19653: Order by meta field forces ignore of null records

WordPress Trac noreply at wordpress.org
Thu Aug 8 21:42:02 UTC 2013


#19653: Order by meta field forces ignore of null records
-------------------------+------------------
 Reporter:  tomauger     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.7
Component:  Query        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------
Changes (by wonderboymusic):

 * keywords:   => has-patch
 * milestone:  Awaiting Review => 3.7


Comment:

 I dislike meta query, but I actually might like this one - I have added a
 patch that does the following:

 1. Allows a top level key called `meta_exclude_empty` which defaults to
 `true`
 1. Allows a `meta_query` key called `exclude_empty` which defaults to
 `true`
 1. If `meta_exclude_empty` evaluates to true at any level, `LEFT JOIN`
 will be used instead of `INNER JOIN` for that level-specific join query

--
Ticket URL: <http://core.trac.wordpress.org/ticket/19653#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list