[wp-trac] [WordPress Trac] #13373: category function creates error: Object of class WP_Error could not be converted to string

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 25 06:18:40 UTC 2010


#13373: category function creates error: Object of class WP_Error could not be
converted to string
-----------------------------------------------------+----------------------
 Reporter:  christian_gnoth                          |        Owner:            
     Type:  defect (bug)                             |       Status:  closed    
 Priority:  normal                                   |    Milestone:            
Component:  General                                  |      Version:  2.9.2     
 Severity:  normal                                   |   Resolution:  worksforme
 Keywords:  get_cat_id, get_category_link, WP_error  |  
-----------------------------------------------------+----------------------
Changes (by nacin):

  * priority:  high => normal
  * status:  new => closed
  * resolution:  => worksforme
  * severity:  major => normal
  * milestone:  Unassigned =>


Comment:

 One of the values you are using there is a WP_Error object, and not what
 you expect.

 My guess is it is get_category_link().

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


More information about the wp-trac mailing list