Commit 322aa004 authored by imac's avatar imac

[Bugfix]JIRA : NAP-53 -> Redirect to home page when logout

parent c385cc33
...@@ -681,7 +681,7 @@ function get_logged_user() { ...@@ -681,7 +681,7 @@ function get_logged_user() {
global $current_user; global $current_user;
get_currentuserinfo(); get_currentuserinfo();
echo $current_user->user_lastname . ' ' . $current_user->user_firstname; echo $current_user->user_lastname . ' ' . $current_user->user_firstname;
echo '<span class = "logout"><a href="' . wp_logout_url(get_permalink()) . '">déconnexion</a></span>'; echo '<span class = "logout"><a href="' . wp_logout_url( home_url() ) . '">déconnexion</a></span>';
} else { } else {
echo '<a class="login" href="#">accès pro</a>'; echo '<a class="login" href="#">accès pro</a>';
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment