Make WordPress Core

Changes between Version 4 and Version 5 of Ticket #57169, comment 9


Ignore:
Timestamp:
01/05/2023 01:35:18 PM (17 months ago)
Author:
manooweb
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57169, comment 9

    v4 v5  
    1010Isn't good in our case (Polylang) because menu_item->ID is really string with non numeric value as "**9-en**"  for example.
    1111
    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.
     12So 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.
    1313
    1414You really need to compare menu item ID as a string to the menu item parent id.