[wp-trac] [WordPress Trac] #12212: post__in can't manage empty array properly
WordPress Trac
wp-trac at lists.automattic.com
Sun Feb 14 01:48:10 UTC 2010
#12212: post__in can't manage empty array properly
--------------------------+-------------------------------------------------
Reporter: lifeless85 | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Query | Version: 2.9.1
Severity: normal | Keywords: post__in
--------------------------+-------------------------------------------------
Comment(by dd32):
The query var is being filled with "empty", The field in question is
designed to query posts based on a specified list, If the list is empty,
then its not being used.
Instead, You need to not call get_posts() or whatever if you know you dont
want to retrieve posts.
If you're hooking into WP_Query for the main post request, you need to
modify the query earlier to not run most likely.
If you need any help on those, i'd suggest the wp-hackers mailing list
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12212#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list