Opened 9 years ago
Closed 9 years ago
#33334 closed defect (bug) (duplicate)
(Shared term) Nav menu cleared on save
Reported by: | TannerMirabel | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.2 |
Component: | Menus | Keywords: | |
Focuses: | Cc: |
Description
We ran into this bug with some earlier installations where there were shared taxonomy terms.
I have reproduced this in WP 4.2.4 network installation.
Steps to reproduce:
- In your database, have terms that are shared between multiple taxonomies with one taxonomy being
nav_menu
. - Populate said menu and save changes.
Expected result would be that the changes were updated to the menu but instead the menu items disappear.
I suspect this is because the menu's term_id
is changed and its items are not coupled with the new ID.
If this is the case, it could be fixed beforehand by splitting the terms with something like this: https://github.com/jjeaton/wp-find-shared-terms. It tried this on a test environment and it seemed to work nicely.
In our case, we have dozens of network installations with dozens of sites in each so it's not possible for us to go through each site to detect and fix menus with possible shared taxonomies.
Shifting to 4.3 for review.