[wp-trac] [WordPress Trac] #40232: Could is_tax check through queried_terms instead of queried_object?
WordPress Trac
noreply at wordpress.org
Wed Mar 22 09:21:20 UTC 2017
#40232: Could is_tax check through queried_terms instead of queried_object?
-----------------------------+-----------------------------
Reporter: yeetien | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 4.7.3
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
is_tax('tax2') returns false when tax2 is one of the taxonomies on
http://somesite.com/?tax1=abc&tax2=xyz, as the queried_object is tax1.
Would it be possible for is_tax to check through queried_terms instead of
queried_object, so that is_tax('tax1') and is_tax('tax2') would both
return true?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40232>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list