Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#29900 closed defect (bug) (duplicate)

WordPress Logout Redirect Failure Notice

Reported by: noamcleanforestsolutionscom's profile noam@… Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.1
Component: Login and Registration Keywords: has-patch
Focuses: ui, administration Cc:


When attempting to logout, if the wpnonce is not valid you are greeted with the following message:

Example URL:
Message: "You are attempting to log out of Do you really want to log out?"

A screenshot is attached.

This is important to prevent accidental logouts.

However, this message also appears when the user is not even logged in to the website. For example:

This should not occur.

If you are logged out, the "Do you really want to log out.." message and link provides no value as you are already logged out and you have no alternative.

Attachments (2)

29900.png (75.6 KB) - added by noam@… 9 years ago.
Screenshot for Ticket #29900
29900.txt (906 bytes) - added by noam@… 9 years ago.
Patch #29900

Download all attachments as: .zip

Change History (4)

9 years ago

Screenshot for Ticket #29900

9 years ago

Patch #29900

#1 @noam@…
9 years ago

  • Keywords has-patch added

Patch 29900.txt modifies wp_nonce_ays() to first check to see if the user is not logged in.
If the user is not logged in it will redirect to the login page.

Additionally, it removes the word "Failure" from the page title. For the average user, seeing WordPress report a "failure" anywhere on the website does not instill confidence in the software.

#2 @SergeyBiryukov
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #22254.

Note: See TracTickets for help on using tickets.