[wp-trac] [WordPress Trac] #23309: Not all WP_Query::query_vars get updated during WP_Query::get_posts()
WordPress Trac
noreply at wordpress.org
Mon Jan 28 19:51:55 UTC 2013
#23309: Not all WP_Query::query_vars get updated during WP_Query::get_posts()
--------------------------+------------------------------
Reporter: prettyboymp | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version:
Severity: normal | Resolution:
Keywords: needs-patch |
--------------------------+------------------------------
Changes (by wonderboymusic):
* keywords: => needs-patch
Comment:
Ok, yes, I agree that one (tax slurping all post types) sucks, and I
voiced my objections about it right after it got changed in core. To
defeat that, simply pass 'post' as post_type or whatever post_types you
are trying to query. It only happens when you don't explicitly pass a
post_type. The documentation for this is misleading and caused me pain as
well, especially since it is ignorant of multisite.
I think this is patchable - I'll take a look
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23309#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list