Opened 2 years ago
Renaming menus orphans children when using global terms
|Reported by:||adambackstrom||Owned by:|
Renaming a menu when global terms is enabled will cause the menu to be disassociated from its children. This is caused by the reliance on wp_get_nav_menu_object() in wp_update_nav_menu_item() and elsewhere, where the calling function attempts to get the menu object using the old global term id rather than the new global term id. The menu items appear to be invalid because the menu term id has changed.