• When I try to logout of 2.7 within a Category page I get the following error:

    You are attempting to log out of

    Please try again.

    Has anybody experienced this in 2.7?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter rgockley

    (@rgockley)

    Does anyone know if there is a patch for this issue in 2.7?

    Or is there a certain php file and specific code I can be looking for.

    Thread Starter rgockley

    (@rgockley)

    This tread https://codex.www.ads-software.com/Template_Tags/wp_logout_url provides the page that contains the changes I believe however, I am unable to find the code it’s calling out.

    Is this file (wp-includes/general-template.php) the correct one? If so can anyone tell what line the code string is on.

    Thread Starter rgockley

    (@rgockley)

    I am currently in the comments.php page for the classic theme.

    I’ve altered this line of code and I still get the error message in the blog when you attempt to log out of the blog.
    ……………………………….
    You are attempting to log out of

    Please try again.
    ……………………………….
    Below the dotted line is the code I’ve zeroed in on. Below it are two options (if I’m reading the WP support info properly) that I’ve tried substituting for the code.
    …………………………………………………..

    <?php echo get_option(‘siteurl’); ?>/wp-login.php?action=logout” title=”<?php _e(‘Log out of this account’) ?>”><?php _e(‘Logout »’); ?>

    <?php echo wp_logout_url(); ?>” title=”Logout”>Logout
    <?php echo wp_logout_url( get_permalink() ); ?>” title=”Logout”>Logout

    Can someone please weigh in on this.

    Thanks

    Thread Starter rgockley

    (@rgockley)

    Thread Starter rgockley

    (@rgockley)

    Thread Starter rgockley

    (@rgockley)

    I wanted to close this thread versus leaving it open ended.

    As it turned out, I was adding the code to the comment.php in the wrong themes folder. When placed into the correct folder it worked like a charm. Make sure you’re in the correct theme!!!!

    <?php echo wp_logout_url(get_permalink()); ?>

    For anyone else viewing this post with the same issue this link has the info.
    https://codex.www.ads-software.com/Template_Tags/wp_logout_url

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘2.7 Logout Message’ is closed to new replies.