[wp-trac] Re: [WordPress Trac] #9662: get_category_to_edit() wrongly modified description field

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 28 03:25:02 GMT 2009


#9662: get_category_to_edit() wrongly modified description field
--------------------------+-------------------------------------------------
 Reporter:  hailin        |       Owner:  anonymous        
     Type:  defect (bug)  |      Status:  new              
 Priority:  normal        |   Milestone:  Unassigned       
Component:  General       |     Version:                   
 Severity:  normal        |    Keywords:  reporter-feedback
--------------------------+-------------------------------------------------

Comment(by hailin):

 trunk revision 11073

 To reproduce it, construct categories structure so that the second page
 starts in a subtree, and the code is supposed to print the parents. (only
 after you apply patch #9661 to fix the subtree bug)

 Those parents have description filed set to <br /> although they were
 empty before
 the call $qe_data = get_category_to_edit($category->term_id).

 So get_category_to_edit() modified the description filed unwittingly.

 The expected behavior is not to alter the empty description field.

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


More information about the wp-trac mailing list