Opened 19 months ago
Last modified 18 months ago
#19205 new defect (bug)
Orphaned categories can be created by accident
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Taxonomy | Version: | |
| Severity: | minor | Keywords: | |
| Cc: |
Description
There are two ways to do that.
- 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.
- 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.
Note: See
TracTickets for help on using
tickets.

Related: #8119