• If maintenance is set to “off” in plugin settings, the plugin still adds its own wp_logout action and overwrites other plugins action which might be in place.

    maintenance.php:47,265

    add_action('wp_logout', array(&$this, 'mtnc_user_logout'));
    
    public function mtnc_user_logout()
    {
      wp_safe_redirect(get_bloginfo('url'));
      exit;
    }

    Suggested fix: The action should only be added if maintenance is set to “on” or not at all.

    WordPress 6.1.1, Maintenance 4.07

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WebFactory

    (@webfactory)

    We need an if definitely ?? Sorry about that. Noted, and will be fixed!

    Thread Starter Ov3rfly

    (@ov3rfly)

    Feel free to mark this issue as ‘resolved’ after a plugin update with a fix has been released, not before.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bug, wp_logout changed with maintenance off’ is closed to new replies.