• Hi all! I’m using WordPress 3.4.1. When i logout it will display “you are attempting to log out of..Do you really want to log out?”. How i can fix it? I want to set logout link href on admin bar is

    href=”<?php echo wp_logout_url(); ?>”

    but i don’t know how to make it? Anyone can help me?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Try to deactivate all your plugins and revert to Twenty Eleven theme and see if it makes any changes.

    Thread Starter tienthanh

    (@tienthanh)

    Hi @krishna, my site i current running, i can’t deactivate all plugin & change theme, do you have any ideas?

    Thread Starter tienthanh

    (@tienthanh)

    This is thing that i know :

    By the looks of it, the logout link is hardcoded to the header so doesn't include the WordPress required nonce which is used to double check you really want to logout (or do any other action such as save a post). This explains the second logout confirmation screen.
    You can adjust the logout link to use the WordPress function to fix this problem, it should look similar to this:
    <a href="<?php echo wp_logout_url(); ?>" title="Logout">Logout</a>
    and full details are available in the WP Logout URL page in the Codex.

    but i don’t know how to change Logout Url on Admin bar ?

    Thread Starter tienthanh

    (@tienthanh)

    The problem is not resolved. Anyone can help me?

    You’ve been given all the tools you need to resolve the problem. Sometimes you just gotta write some code.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to fix "you are attempting to log out of..Do you really want to log out?"’ is closed to new replies.