Opened 3 months ago

Last modified 3 months ago

#23603 new defect (bug)

Custom post password form label

Reported by: soulseekah Owned by:
Priority: normal Milestone: Awaiting Review
Component: Post Types Version:
Severity: normal Keywords: has-patch
Cc: kovshenin

Description

get_the_password_form() hardcodes the password protected message.

__("This post is password protected. To view it please enter your password below:")

This results in misbehavior, wherein all post types (including Pages) do not make a distinction between what is password protected.
Considering the difficulty of chunking up that string to be dynamic and more importantly easily localizable, I attach a draft patch which makes that message a label instead.

Attachments (1)

password_protected.patch (1.8 KB) - added by soulseekah 3 months ago.

Download all attachments as: .zip

Change History (3)

How about "This content is password protected"?

  • Cc kovshenin added
  • Keywords has-patch added
Note: See TracTickets for help on using tickets.