[wp-trac] [WordPress Trac] #32526: Tax_Query doesn't working in switch_to_blog()
WordPress Trac
noreply at wordpress.org
Mon Dec 14 05:07:48 UTC 2015
#32526: Tax_Query doesn't working in switch_to_blog()
--------------------------------+------------------------
Reporter: phill_brown | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Networks and Sites | Version: 4.2.2
Severity: normal | Resolution: duplicate
Keywords: | Focuses: multisite
--------------------------------+------------------------
Changes (by jeremyfelt):
* status: new => closed
* resolution: => duplicate
* milestone: Awaiting Review =>
Comment:
Thanks for the ticket and patch, @phill_brown. I don't think there's much
we can do here. The attached patch solves a specific scenario, but would
not make all tax queries work in a switched context.
The taxonomy is available in that it's stored in the database, but to
properly use it as part of the query, any plugin registering that taxonomy
should also be activated on the querying site.
At its core, this ticket is a duplicate of #20541 due to the
`taxonomy_exists()` requirement in taxonomy queries.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32526#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list