[wp-trac] [WordPress Trac] #23268: NOT EXISTS meta query with OR relation

WordPress Trac noreply at wordpress.org
Mon Mar 24 19:56:56 UTC 2014


#23268: NOT EXISTS meta query with OR relation
-------------------------------------------------+-------------------------
 Reporter:  timfield                             |       Owner:
     Type:  defect (bug)                         |  wonderboymusic
 Priority:  normal                               |      Status:  closed
Component:  Query                                |   Milestone:  3.9
 Severity:  normal                               |     Version:  3.5
 Keywords:  has-patch needs-unit-tests meta-     |  Resolution:  fixed
  query                                          |     Focuses:
-------------------------------------------------+-------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"27689"]:
 {{{
 #!CommitTicketReference repository="" revision="27689"
 When using `meta_query` in a `WP_Query`, passing `NOT EXISTS` or `''` to
 `compare` should not require `value` to be set. The resulting SQL should
 then produce the appropriate `OR` clause for existence of non-existence
 after passing the query to the `$key_only_queries` stack internally.

 Adds unit tests.

 Props chrisguitarguy, for the original patch.
 Fixes #23268.
 }}}

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


More information about the wp-trac mailing list