[wp-trac] [WordPress Trac] #3460: Duplicated default category after deleting a category

WordPress Trac wp-trac at lists.automattic.com
Sun Dec 10 16:10:02 GMT 2006


#3460: Duplicated default category after deleting a category
----------------------------+-----------------------------------------------
 Reporter:  zhouqb          |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:  2.1      
Component:  Administration  |     Version:  2.0.5    
 Severity:  normal          |    Keywords:  category 
----------------------------+-----------------------------------------------
 If a category is deleted, all the posts under it will be assigned the
 default category.

 A better approach is checking if it has been assigned another category. If
 yes, don't apply the default category - that's meaningless.

 A real bug is, if the post was assigned both the deleted category and the
 default, the default will be assigned once more, resulting in two
 identical rows (except rel_id column) in the wp_post2cat table. Also the
 fix is adding a check, but following the approach above will avoid such
 situation.

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


More information about the wp-trac mailing list