Support » Plugin: MultilingualPress » Incompatibility with Max Mega Menu

Viewing 5 replies - 1 through 5 (of 5 total)
  • Andreas W.

    (@aweissinpsyde)

    Hello @megamenu

    what for MLP Version he is using? MLP Version 3? Please not on wordpress.org MLP 2 has been published. For support request for MLP 3 he may mailto: support@multilingualpress.org

    Regards
    Andreas

    megamenu

    (@megamenu)

    Hi Andreas,

    I am not sure which version he is using, but I think this is happening in v2.11.2 (as thats where the type hinting happens).

    Regards,
    Tom

    Mario Bellino

    (@mariobellino)

    Hi @aweissinpsyde!

    Yes, it’s 2.11.2 with WordPress 4.9.8.

    Best regards,
    Mario

    Plugin Author dinamiko

    (@dinamiko)

    Hi Mario,

    As a quick fix try this, in src/inc/nav-menu/Mlp_Nav_Menu_Frontend.php line 74 replace this:

    public function maybe_delete_obsolete_item( WP_Post $item ) {
      $site_id = $this->get_site_id( $item );
      ...

    for this:

    public function maybe_delete_obsolete_item( $item ) {
      return false;
      $site_id = $this->get_site_id( $item );
      ...

    Try it and let us know.

    Thanks,
    Emili

    Hi Emili,

    that doesn’t work. But I’ve found a solution:

    public function maybe_delete_obsolete_item( WP_Post $item ) {

    You delete the argument WP_POST in your solution. That doesn’t work. I’d find two other places in that file with this argument. After I delete them, it works for me :-).

    Best regards,
    Mario

    • This reply was modified 11 months, 1 week ago by Mario Bellino.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Incompatibility with Max Mega Menu’ is closed to new replies.