• Resolved AJ Mallory

    (@jasonm4563)


    After logging in to view a protected page clicking the logout button has not effect. I was able to fixit in my case by loading the JS script in the footer. Would it be possible to make this change to your code (assuming it doesn’t cause other errors) or at least add it as an option?

    Nice plugin, thank you for releasing it!
    –AJ

    To make this change modify line 84 adding ,true to force wp_register_script call to load script in the footer.
    function pplb_logout_js(){
    wp_register_script( 'pplb_logout_js', plugins_url( '/logout.js', __FILE__ ), array('jquery'), null, true );

    https://wordpress.org/plugins/protected-posts-logout-button/

Viewing 1 replies (of 1 total)
  • Plugin Author Nate Reist

    (@natereist)

    Hey AJ, the latest release of this plugin has this change applied to it. Thanks for pointing that out.

    -Nate

Viewing 1 replies (of 1 total)
  • The topic ‘Logout button not working JS in footer’ is closed to new replies.