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

WordPress Trac noreply at wordpress.org
Fri Feb 6 19:52:01 UTC 2015


#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:
-------------------------------------------------+-------------------------

Comment (by boonebgorges):

 @o----o - At a glance, it looks like the problem is that your `'relation'
 => 'OR'` parameter is not within the `meta_query` like it should be, which
 would make the query relation default to `AND`. Try moving it inside of
 the `meta_query` array.

 If you continue to have problems, please open a new ticket with a
 reference back to this one - we like to avoid reopening tickets that have
 been fixed against a closed milestone.

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


More information about the wp-trac mailing list