Make WordPress Core

Opened 7 months ago

Last modified 4 months ago

#52600 new enhancement

wp_nonce_ays('log-out') is confusing

Reported by: david.kryzaniak Owned by:
Milestone: 5.9 Priority: normal
Severity: normal Version:
Component: Login and Registration Keywords: has-patch dev-feedback
Focuses: Cc:


When calling wp_nonce_ays('log-out') the page title is "Something went wrong." and the HTTP status is 403. That is a little confusing. I think a 200 response and "You are attempting to log out of %s" for the title makes more sense. Thoughts?

Attachments (2)

52600.patch (1.1 KB) - added by david.kryzaniak 7 months ago.
52600_2.patch (1.1 KB) - added by david.kryzaniak 7 months ago.
fixed spacing

Download all attachments as: .zip

Change History (6)

7 months ago

fixed spacing

#1 @david.kryzaniak
7 months ago

  • Keywords has-patch dev-feedback added

This ticket was mentioned in Slack in #core by peterwilsoncc. View the logs.

4 months ago

#3 @peterwilsoncc
4 months ago

  • Component changed from General to Login and Registration

Hi @davidkryzaniak and welcome to trac!

Improving this messaging makes sense to me.

The next version of WordPress (5.8) is in feature freeze at the moment, so I will put this on the following milestone for visibility.


#4 @peterwilsoncc
4 months ago

  • Milestone changed from Awaiting Review to 5.9
Note: See TracTickets for help on using tickets.