Opened 2 years ago

Closed 11 months ago

#16510 closed defect (bug) (maybelater)

Make is_tax() multi-taxonomy aware

Reported by: scribu Owned by:
Priority: normal Milestone:
Component: Query Version: 3.1
Severity: normal Keywords: needs-patch
Cc:

Description

Although WP 3.1 supports multi-taxonomy queries, is_tax() still relies on get_queried_object().

This makes it return true only for the first taxonomy.

In the wild: http://wordpress.org/support/topic/plugin-query-multiple-taxonomies-conditional-tag-problem

Change History (1)

  • Milestone Future Release deleted
  • Resolution set to maybelater
  • Status changed from new to closed

This should probably be a new function, but it's not clear yet how flexible it should be, compared to checking $wp_query->tax_query manually.

Note: See TracTickets for help on using tickets.