• Resolved scottsemple

    (@scottsemple)


    What needs to be written in order to include a user’s nonce with the logout command?

    I’m using the following for a loginout link, but when logging out, the user is directed to a WP failure screen. Here’s a screenshot: https://img.skitch.com/20101006-mggybsaa1xcs9tb3xi7g99rhi9.png

    Heres the code I’m using for the loginout:

    <div class="loginout">
       <h3>
          <a href="/login/?action=register">Register</a>
           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  ?????
           <?php
              if ( is_user_logged_in() ) {
                 echo '<a href="/login/?action=logout" title="Log out">Log out</a>';
              } else {
                 echo '<a href="/login/?action=login" title="Log in">Log in</a>';
              }
           ?>
           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;              ?????
           <a style="color: darkOrange;" href="mailto:[email protected]">HELP</a>
        </h3>
    </div>

    If I can include the nonce with the logout command then the user will be successfully logged out with one click, correct?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Theme My Login] Include nonce with logout?’ is closed to new replies.