[wp-trac] [WordPress Trac] #30681: Using a value in a meta_query (in WP_Query) combined with EXISTS OR NOT EXISTS breaks query
WordPress Trac
noreply at wordpress.org
Thu Dec 11 21:59:59 UTC 2014
#30681: Using a value in a meta_query (in WP_Query) combined with EXISTS OR NOT
EXISTS breaks query
--------------------------+-----------------------------
Reporter: barrykooij | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
From 3.9 and up you don't have to specify a value when using the 'EXISTS'
or 'NOT EXISTS' comparisons in meta_query in WP_Query. I still do, to
prevent those annoying bugs for people on 3.8 and lower. This will break
in WordPress 4.1.
Attached patch fixes this problem.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30681>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list