[wp-trac] [WordPress Trac] #4558: Allow category names in in_category()

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 28 22:19:14 GMT 2007


#4558: Allow category names in in_category()
----------------------------+-----------------------------------------------
 Reporter:  robmil          |       Owner:  robmil     
     Type:  enhancement     |      Status:  new        
 Priority:  normal          |   Milestone:  2.3 (trunk)
Component:  Administration  |     Version:  2.3        
 Severity:  normal          |    Keywords:  has-patch  
----------------------------+-----------------------------------------------
 Currently, in_category() only accepts the ID of a category, whereas
 is_category() accepts IDs, slugs and names. I think it's useful to be able
 to check if a post is in a given category based on its name as well as its
 ID, personally.

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


More information about the wp-trac mailing list