[wp-trac] [WordPress Trac] #9653: Notice Error in category-template

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 27 09:12:23 GMT 2009


#9653: Notice Error in category-template
--------------------------+-------------------------------------------------
 Reporter:  REGA1976      |       Owner:  anonymous   
     Type:  defect (bug)  |      Status:  new         
 Priority:  low           |   Milestone:  2.8         
Component:  General       |     Version:  2.8         
 Severity:  normal        |    Keywords:  Notice Error
--------------------------+-------------------------------------------------
 Notice: Object of class stdClass could not be converted to int in
 /var/www/wpcms/wp-includes/category-template.php on line 31

 The Notice Error is in v2.8 and also in v2.7.x (there in line 65)

 find the code in line 31

 '''$category->parent == $category_id // recursive recursion'''

 and fix it to the following code

 '''if ( isset($category->parent) == $category_id ) // recursive
 recursion'''

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


More information about the wp-trac mailing list