Make it so that rest.php works when the Polylang plugin is absent or
inactive.
Move PLL_Choose_Lang subclassing into a new module that is
conditionally loaded only in a code path that guarantees that Polylang
is present
Extract the \PLL_Frontend_Nav_Menu initialization from inside that
class override (untested, but this is also what PLL_Frontend::init()
does so we should be all good)
Make it so that
rest.php
works when the Polylang plugin is absent or inactive.PLL_Choose_Lang
subclassing into a new module that is conditionally loaded only in a code path that guarantees that Polylang is present\PLL_Frontend_Nav_Menu
initialization from inside that class override (untested, but this is also whatPLL_Frontend::init()
does so we should be all good)