WP Modal Login
Bug: Logout redirection in the same page doesn't work (1 post)

  1. Md. Kowsar Hossain
    Posted 2 years ago #

    I used following function in my theme So that page can redirect to same page after Logout:

    add_modal_login_button( $login_text = 'Login', $logout_text = 'Logout', $logout_url = $_SERVER['REQUEST_URI'], $show_admin = false);

    But It redirects to homepage

    Note: I fixed this by hacking your code. In class-wp-modal-login.php file line 544 I changed this:

    wp_logout_url( esc_url( $logout_url ) )

    into this:

    wp_logout_url( $logout_url )

    Seems it works now. But i don't like changing into code. Hope you fix this


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by Md. Kowsar Hossain
  • This topic is not resolved
  • WordPress version: 3.8