[wp-trac] [WordPress Trac] #12212: post__in can't manage empty array properly
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 12 10:55:05 UTC 2010
#12212: post__in can't manage empty array properly
--------------------------+-------------------------------------------------
Reporter: lifeless85 | Owner: ryan
Type: defect (bug) | Status: new
Priority: high | Milestone: Future Release
Component: Query | Version: 2.9.1
Severity: major | Keywords: post__in
--------------------------+-------------------------------------------------
There's a conceptual mysfunction in
[http://core.trac.wordpress.org/browser/trunk/wp-includes/query.php#L1723]
if we want posts that are included in an empty array we should have
obviusly no posts.
Instead by adding conditions to the query, if we have an empty array we
add no conditions and the query is still the same ...
i think it's a major issue.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12212>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list