[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
Sun Dec 14 19:30:42 UTC 2014
#30681: Using a value in a meta_query (in WP_Query) combined with EXISTS OR NOT
EXISTS breaks query
--------------------------+--------------------------
Reporter: barrykooij | Owner: johnbillion
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.1
Component: Query | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+--------------------------
Changes (by johnbillion):
* owner: => johnbillion
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"30848"]:
{{{
#!CommitTicketReference repository="" revision="30848"
In `WP_Meta_Query`, interpret 'value' correctly when used with EXISTS/NOT
EXISTS.
As in earlier versions, EXISTS with a value is equivalent to '=', while
NOT
EXISTS should always ignore 'value'.
Merges [30846] to the 4.1 branch.
Props barrykooij.
Fixes #30681
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30681#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list