[wp-testers] wp_logout_url( with redirect )

Philip M. Hofer (Frumph) philip at frumph.net
Wed Jan 12 07:11:44 UTC 2011


wp_logout_url isn't utilizing redirect_to as it should or is trying to 

In the core code I looked how wp_logout_url was being used in various places

one of them is:  wp_logout_url(get_permalink());

So trying that out I do this:

<li><a href="<?php echo wp_logout_url(get_permalink()); ?>"><?php _e('Logout','easel'); ?></a></li>



The problem is that it's not actually redirecting back, here's the permalink url it actually gives:

http://comicpress.net/wp-login.php?action=logout&redirect_to=http%3A%2F%2Fcomicpress.net%2F2011%2Fnews%2Fcomicpress-manager%2F&_wpnonce=feb153de6f

while this is showing the &redirect_to it's not actually redirecting to






More information about the wp-testers mailing list