[wp-trac] [WordPress Trac] #10605: WordPress Shouldn't Mess with post_type
WordPress Trac
wp-trac at lists.automattic.com
Sat Aug 15 08:20:35 UTC 2009
#10605: WordPress Shouldn't Mess with post_type
-------------------------------------------+--------------------------------
Reporter: filosofo | Owner: ryan
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 2.9
Component: Query | Version:
Severity: normal | Resolution:
Keywords: post_type, wp_query has-patch |
-------------------------------------------+--------------------------------
Comment(by dd32):
Its defaulting to 'post' which fufils the !empty() check.. See patch
I'm also a bit suspicious of the $post_type = 'any' on line 1963:
http://core.trac.wordpress.org/browser/trunk/wp-includes/query.php#L1963
It'll prevent querying for any objects of type x which are in a taxonomy,
ie. i ask for Posts assoc. with Term5 and i'll receive Posts and Pages
assoc. with Term5.. (I think)
I've done some basic testing on this.. in that posts/pages/attachments are
queried correctly.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10605#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list