[wp-trac] [WordPress Trac] #6749: in_category needs to be able to take more than one category...

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 16 15:45:16 GMT 2008


#6749: in_category needs to be able to take more than one category...
-------------------------+--------------------------------------------------
 Reporter:  Otto42       |       Owner:  anonymous                          
     Type:  enhancement  |      Status:  new                                
 Priority:  normal       |   Milestone:  2.6                                
Component:  Template     |     Version:  2.5                                
 Severity:  normal       |    Keywords:  needs-testing 2nd-opinion has-patch
-------------------------+--------------------------------------------------
 Reference:
 http://wordpress.org/support/topic/169575

 When I first replied, I thought in_category(array(7,8,9,10,11)) would
 work, since a lot of the 2.5 template functions were enhanced to support
 multiple checking like this. Imagine my surprise when looking through the
 code that in_category apparently got missed.

 Patch attached. Not sure if it works properly though, it needs testing and
 feedback.

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


More information about the wp-trac mailing list