[wp-trac] [WordPress Trac] #30846: Custom query using tag__in sets query_var tag_id
WordPress Trac
noreply at wordpress.org
Sat Dec 27 19:17:00 UTC 2014
#30846: Custom query using tag__in sets query_var tag_id
-------------------------------+------------------------------
Reporter: philbirnie | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 4.1
Severity: normal | Resolution: invalid
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by boonebgorges):
philbirnie - Aha, thanks for the update. This is the same problem (and
solution) as what I described here:
https://core.trac.wordpress.org/ticket/27193#comment:10 In short, when you
set up a new `WP_Query` object, the `get_posts()` method is automatically
called internally during the setup process. Invoking that method again can
cause the kinds of query_var stomping that you've described here. We ought
to have better documentation of this behavior.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30846#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list