[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 13:52:40 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:  Awaiting Review          
Component:  Warnings/Notices  |     Version:  3.0.1                    
 Severity:  normal            |    Keywords:  get_category_link, notice
------------------------------+---------------------------------------------
 Today i was using get_category_link() function which gives category link
 corresponding to a category id.By mistake i took such category id that was
 not there in my categories list.

 So I was getting one error
 Notice: Trying to get property of non-object in C:\xampp\htdocs\wordpress
 \wp-includes\category-template.php on line 28

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


More information about the wp-trac mailing list