[wp-trac] [WordPress Trac] #13044: is_taxonomy should return true on taxonomy pages

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 18 22:12:51 UTC 2010


#13044: is_taxonomy should return true on taxonomy pages
--------------------------+-------------------------------------------------
 Reporter:  thomask       |       Owner:  filosofo
     Type:  defect (bug)  |      Status:  new     
 Priority:  normal        |   Milestone:  3.0     
Component:  Taxonomy      |     Version:  3.0     
 Severity:  normal        |    Keywords:          
--------------------------+-------------------------------------------------
 contrary is_category() and other conditional functions, the is_taxonomy
 function must have argument $taxonomy, so cannot be used to check if i am
 on the taxonomy page.

 wp-includes/taxnomoy.php should have something like

 {{{
 function is_taxonomy( $taxonomy= NULL ) {
         global $wp_query;
         if (NULL == $taxonomy) return isset($wp_query->is_tax);
         global $wp_taxonomies;
         return isset($wp_taxonomies[$taxonomy]);
 }
 }}}

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


More information about the wp-trac mailing list