[wp-trac] [WordPress Trac] #15449: Notice generated in get_category_link function with a category id that does not exist

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 17 17:09:34 UTC 2010


#15449: Notice generated in get_category_link function with a category id that does
not exist
------------------------------+---------------------------------------------
 Reporter:  kapilchugh        |       Owner:                           
     Type:  defect (bug)      |      Status:  new                      
 Priority:  normal            |   Milestone:  3.1                      
Component:  Warnings/Notices  |     Version:  3.0.1                    
 Severity:  normal            |    Keywords:  get_category_link, notice
------------------------------+---------------------------------------------

Comment(by nacin):

 Actually, I see the other issue -- that get_term() (and thus
 get_taxonomy()) can also return null.

 Additional defensive checks might be necessary here.

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


More information about the wp-trac mailing list