logout issue
-
First, thanks for the great plugin, I always try to use it when I can.
But lately with my latest website I discovered some issue, and I can’t find the problem, though I did find a solution to it.
I have following code in a widget for displaying user logged in or not.
<?php ?> <?php if ( is_user_logged_in() ) { global $current_user; get_currentuserinfo(); echo 'Welkom <strong>' . $current_user->user_firstname .'</strong> | <a href="logout">Uitloggen?</a>'; } else { echo 'Welkom <strong>Gast</strong> | <a href=login>Inloggen</a>'; } ?>When I use it this way, you get the ‘are you sure’ confirmation from wordpress, only when a user try to log out when they are at the root, like mywebsite.com.
Strange,
when the user try to logout from a page like ‘mywebsite.com/dashboard/’ it works like it should.Currently I solved it to change the logout link to ‘mywebsite.com/dashboard/logout/’
Am I missing something or is it an issue?
Kind regards,
Bjorn
The topic ‘logout issue’ is closed to new replies.