Log1x / navi

A developer-friendly alternative to the WordPress NavWalker.
https://github.com/Log1x/navi
MIT License
311 stars 29 forks source link

Error with polylang #79

Closed cfab closed 4 months ago

cfab commented 4 months ago

Hello,

As soon as you activate "polylang" plugin, you systematically get the following error:

Log1x\Navi\MenuBuilder::handle(): Argument #2 ($parent) must be of type int, string given, called in...

Would be great if Navi v3 continues to work with polylang as before.

(I am using latest sage, acorn and navi versions as of today.)

Thank you !

Log1x commented 4 months ago

Can you potentially tell me what the string looks like that it is passing? I'm assuming it's the post id prefixed/suffixed with the locale or something?

Log1x commented 4 months ago

composer require log1x/navi:dev-fix/79

Let me know if this works and I can merge + release.

cfab commented 4 months ago

That was fast ;-) And it works. Thank you