[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 09:50:13 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 vasylesku):

 Replying to [comment:2 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.

 The input is correct. Like I sad, in wp 3.0.4 is working perfect. I just
 switch to wp 3.1.
 So your comment is shallow. This is a bug. Of course, 3.1.1 comes after
 3.1, 3.1.2 comes after 3.1.1 and so.

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


More information about the wp-trac mailing list