[wp-trac] [WordPress Trac] #16385: Catchable fatal error in WP 3.1 RC3 - echo get_category_link

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 27 07:21:59 UTC 2011


#16385: Catchable fatal error in WP 3.1 RC3 - echo get_category_link
-------------------------------------------------+-------------------------
 Reporter:  vasylesku                            |       Owner:
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:
Component:  General                              |     Version:  3.1
 Severity:  normal                               |  Resolution:  duplicate
 Keywords:  Catchable fatal error, echo          |
  get_category_link                              |
-------------------------------------------------+-------------------------

Comment (by dd32):

 Actually, not 100% sure this is a duplicate, but sounds damn close to it..

 It sounds like `get_theme_mod('featured')` is returning either
  - a non-integer
  - an integer, but not the id of a category.

 Eitherway, You need to account for the fact that get_category_link MAY
 return a WP_Error object in the event the input is not correct.

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


More information about the wp-trac mailing list