Changes between Version 4 and Version 5 of Ticket #57169, comment 9
- Timestamp:
- 01/05/2023 01:35:18 PM (20 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #57169, comment 9
v4 v5 10 10 Isn't good in our case (Polylang) because menu_item->ID is really string with non numeric value as "**9-en**" for example. 11 11 12 So if menu item ("9-en") has its menu item parent 9 (real case), the new condition you introduce is true and you override menu_item_parent property with 0. It causes the bug in our language switcher use in navigation menu.12 So if menu item ("9-en") has its menu item parent 9 (real case), the new condition you introduce is true and you override menu_item_parent property with 0. It causes the bug in our language switcher used in navigation menu. 13 13 14 14 You really need to compare menu item ID as a string to the menu item parent id.