WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 5 months ago

#37332 new enhancement

Enhancement: Add a wrong password message on password protected posts

Reported by: henry.wright Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.5.3
Component: Posts, Post Types Keywords: has-patch
Focuses: Cc:
PR Number:

Description

If a post is password protected, the user is shown a form where they can enter a password to gain access. If a wrong password is given, there's no helpful message shown to the user. The page is simply reloaded.

Something like "Wrong password. Please try again." would be helpful here.

Attachments (2)

37332-01.patch (1.8 KB) - added by Jonnyauk 3 years ago.
Adds error message if post password is incorrect. Adds new function get_the_password_form_wrong_password() and new filter 'the_password_form_wrong_password'
37332-02.3.diff (1.8 KB) - added by Jonnyauk 3 years ago.
Updated patch file in correct format (trunk dev version) - Adds error message if post password is incorrect. Adds new function get_the_password_form_wrong_password() and new filter 'the_password_form_wrong_password'

Download all attachments as: .zip

Change History (4)

#1 @SergeyBiryukov
3 years ago

  • Component changed from General to Posts, Post Types

@Jonnyauk
3 years ago

Adds error message if post password is incorrect. Adds new function get_the_password_form_wrong_password() and new filter 'the_password_form_wrong_password'

#2 @Jonnyauk
3 years ago

  • Keywords has-patch added
  • Version set to 4.5.3

Agreed - users should definitely get feedback if the post password is inputted incorrectly - see 37332-01.patch for a suggested solution to this.

@Jonnyauk
3 years ago

Updated patch file in correct format (trunk dev version) - Adds error message if post password is incorrect. Adds new function get_the_password_form_wrong_password() and new filter 'the_password_form_wrong_password'

Note: See TracTickets for help on using tickets.