[wp-trac] [WordPress Trac] #23603: Custom post password form label
WordPress Trac
noreply at wordpress.org
Mon Feb 25 08:46:38 UTC 2013
#23603: Custom post password form label
--------------------------+-----------------------------
Reporter: soulseekah | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Types | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
[http://core.trac.wordpress.org/browser/trunk/wp-includes/post-
template.php?rev=23416#L1214 get_the_password_form()] hardcodes the
password protected message.
{{{#!php
__("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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23603>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list