Compat classes to handle Walker_Nav_Menu::walk()
changes in WP 5.3
WordPress 5.3 modified the Walker_Nav_Menu::walk()
signature adding a third parameter to the method that is using the spread operator. johnjamesjacoby quickly fixed the issue in [12497] when PHP >=5.6.
As our current PHP required version is 5.3, we need to provide a temporary compatibility mechanism to make sure our BP_Walker_Nav_Menu
will not generate errors when the PHP version is lower than 5.6 before raising the PHP required version in our next major release.
props timothybjacobs, boonebgorges, imath
See #8163 (Trunk)