[wp-trac] [WordPress Trac] #49182: Unmask password button
WordPress Trac
noreply at wordpress.org
Mon Jan 13 16:49:45 UTC 2020
#49182: Unmask password button
----------------------------------------+------------------------------
Reporter: bernardroux | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 2.7
Severity: normal | Resolution:
Keywords: needs-patch good-first-bug | Focuses:
----------------------------------------+------------------------------
Comment (by apieschel):
Replying to [comment:1 johnbillion]:
> This functionality exists in a few places within the WordPress admin
area. It should be possible to add it to the password protected post form
too.
I've been looking into a patch, and adding the markup to
get_the_password_form() in wp-includes/post-template.php looks to be
relatively straightforward. However, it doesn't seem right to load the
same Javascript functionality as is loaded for the admin views, such as
the bindToggleButton() function in wp-admin/js/user-profile.js, since this
will be for a front end post view.
For something like this, does it make sense to create a new script file in
wp-includes/js/ ?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49182#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list