Code for Log Out Button Yields Strange URL
According to the codex.. this part: urlencode($_SERVER[‘REQUEST_URI’]) . is unneeded… if you just wan’t to logout (pasting from wordpress codex) <a href=”https://wordpress.stackexchange.com/questions/54970/<?php echo wp_logout_url(); ?>” title=”Logout”>Logout</a> . Logout and Redirect to Current Page <a href=”https://wordpress.stackexchange.com/questions/54970/<?php echo wp_logout_url( get_permalink() ); ?>” title=”Logout”>Logout</a> . Logout and Redirect to Homepage <a href=”https://wordpress.stackexchange.com/questions/54970/<?php echo wp_logout_url( home_url() ); ?>” title=”Logout”>Logout</a> … Read more