[wp-trac] [WordPress Trac] #19205: Orphaned categories can be created by accident

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 8 14:12:40 UTC 2011

#19205: Orphaned categories can be created by accident
 Reporter:  dzver         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:
 Severity:  minor         |   Keywords:
 There are two ways to do that.

 1. You can work on category tree from two browser windows.
 - In window one, delete a category
 - In window two, add a child to the category that has been deleted.

 wp_insert_term needs to check if the parent exists.

 2. If you delete a couple of categories with bulk-delete, a third level
 child node can become orphan.

 wp_delete_term uses get_term to find the parent node and can retrieve
 cached data.

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

More information about the wp-trac mailing list