[wp-trac] [WordPress Trac] #8716: get_category('of a string') throws an error 500

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 24 21:45:49 GMT 2008


#8716: get_category('of a string') throws an error 500
--------------------------+-------------------------------------------------
 Reporter:  Malaiac       |       Owner:  anonymous
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  2.8      
Component:  General       |     Version:  2.7      
 Severity:  normal        |    Keywords:           
--------------------------+-------------------------------------------------
 yes, it's better not to try a get_category of a string in the first place,
 but it's a bit of overreacting, isn't it ?

 try get_category('whatever');
 should be a intval($category) inside get_category() before asking to
 get_term

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


More information about the wp-trac mailing list