[wp-trac] [WordPress Trac] #11904: Conditional tag for terms

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 16 03:39:44 UTC 2010


#11904: Conditional tag for terms
-------------------------+--------------------------------------------------
 Reporter:  pavelevap    |       Owner:  ryan     
     Type:  enhancement  |      Status:  assigned 
 Priority:  normal       |   Milestone:  3.0      
Component:  Taxonomy     |     Version:  2.9.1    
 Severity:  normal       |    Keywords:  has-patch
-------------------------+--------------------------------------------------

Comment(by filosofo):

 Replying to [comment:4 scribu]:
 > I don't think $term should be optional.

 Why not?  It's parallel to {{{is_category}}}, for which the specific
 category is optional.

 {{{
 function is_category($category = '') {
    return is_tax_term('category', $category);
 }
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11904#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list