[wp-trac] [WordPress Trac] #23268: NOT EXISTS meta query with OR releation
WordPress Trac
noreply at wordpress.org
Fri Mar 8 13:33:54 UTC 2013
#23268: NOT EXISTS meta query with OR releation
--------------------------+------------------------------
Reporter: timfield | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version:
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by chrisguitarguy):
I also ran into this issue. `NOT EXISTS` depends on a value when using the
`OR` relation when it obviously shouldn't.
Some test cases: https://gist.github.com/chrisguitarguy/5116384
I was able to get this fixed by adding some more conditionals the lines in
`wp-includes/meta.php` that panbolec pointed out. Diff attached.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23268#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list