[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 14:41:38 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
------------------------------+---------------------------------------------

Comment(by hakre):

 Thanks for reporting the issue.

 {{{get_category()}}} is used in {{{get_category_link()}}} which should
 have returned a WP_Error if it's not possible to get the category.

 Can you post that part of your code that is triggering the notice (e.g.
 the line containing your {{{get_category_link()}}} so that it's
 understandable which arguments have been used? This would also help to
 analyze and reproduce the issue.

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


More information about the wp-trac mailing list