[wp-trac] [WordPress Trac] #20590: is_tax() with term parameter returns true for any taxonomy with that term

WordPress Trac wp-trac at lists.automattic.com
Tue May 1 16:51:45 UTC 2012


#20590: is_tax() with term parameter returns true for any taxonomy with that term
--------------------------+-----------------------------
 Reporter:  petercarlill  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:
 Severity:  minor         |   Keywords:
--------------------------+-----------------------------
 I have two custom taxonomies, 'body' and 'operations', assigned to
 different custom post types.

 Both taxonomies contain the term 'shoulder'

 is_tax('operations','shoulder') returns true both when viewing the
 'shoulder' archive for the taxonomy 'operations' and when viewing the
 archive page for the term 'shoulder' in the taxonomy 'Body-Parts'

 Therefore, is_tax() is returning true for the term, and ignoring which
 taxonomy it is in.

 The only way I can get it to return true only when viewing the 'shoulder'
 archive for 'operations' is by  is_tax( 'operations', 'shoulder') &&
 is_tax('operations')

 Version is 3.3.2

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20590>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list