I use the JPF Login/Out plugin to display text at the top of a WordPress site and after upgrading to WordPress 2.7 the logout link stopped working. After reading in the WordPress Codex it appears that the wp_logout_url was added to provide a nonce-protected URL that can be used during logout.

In the jpf_loginout.php file on line 17 change the below:

$link = $before . '<a href="' . get_settings('siteurl') . '/wp-login.php?action=logout">' . $log_yes . '</a>' . $after;

with the below code or something similar:

$link = $before . '<a href="' . wp_logout_url(get_permalink()) . 'title=">' . $log_yes . '</a>' . $after;

This should resolve the problem.

Tags: , , , , , ,
One Response to “WordPress JPF Login/Out Plugin Logout Not Working After Upgrading to WordPress 2.7”
  1. Babs says:

    This is very good!

    I removed the title= part:

    $link = $before . ‘‘ . $log_yes . ‘‘ . $after;


Leave a Reply

*Type the letter/number combination in the abvoe field before clicking submit.