#19205 closed defect (bug) (fixed)
Orphaned categories can be created by accident
| Reported by: | dzver | Owned by: | wonderboymusic |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.0 |
| Component: | Taxonomy | Version: | |
| Severity: | minor | Keywords: | has-patch needs-unit-tests |
| Cc: | Focuses: |
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.
Attachments (1)
Change History (6)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Related: #8119