[wp-trac] [WordPress Trac] #33341: WP_Meta_Query IN operator with empty array does not return expected result
WordPress Trac
noreply at wordpress.org
Tue Aug 18 17:34:58 UTC 2015
#33341: WP_Meta_Query IN operator with empty array does not return expected result
-------------------------------+------------------------------
Reporter: flixos90 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 3.2
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Changes (by helen):
* keywords: => reporter-feedback
* version: trunk => 3.2
Comment:
Hi flixos90 - welcome to Trac, and thanks for the detailed report. My
expectation in this case would be that the condition is discarded, which
in your example would indeed lead to all posts being returned. Does it
currently work per the first part of your solution, ignoring/discarding
that relation but honoring the others?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33341#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list