[wp-trac] [WordPress Trac] #28099: Empty array passed to WP_Query post__in returns posts
WordPress Trac
noreply at wordpress.org
Sun May 4 22:04:01 UTC 2014
#28099: Empty array passed to WP_Query post__in returns posts
-----------------------------+------------------
Reporter: danielbachhuber | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.0
Component: Query | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+------------------
Changes (by wonderboymusic):
* keywords: needs-patch => has-patch
* milestone: Future Release => 4.0
Comment:
This also applies to `'post_parent__in'` - both are only checked for
truthiness.
We could also check if the user specified one of these arguments as empty
and nuke the query. Does that in [attachment:28099.diff 28099.diff]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28099#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list