mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-01 21:21:24 +01:00
Fix validation issue in get_the_password_form() caused by wpautop(). see #21018 for trunk.
git-svn-id: http://core.svn.wordpress.org/trunk@21124 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6c62701b8f
commit
4e8f4e57d1
@ -1220,7 +1220,7 @@ function get_the_password_form() {
|
||||
$output = '<form action="' . esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ) . '" method="post">
|
||||
<p>' . __("This post is password protected. To view it please enter your password below:") . '</p>
|
||||
<p><label for="' . $label . '">' . __("Password:") . ' <input name="post_password" id="' . $label . '" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . esc_attr__("Submit") . '" /></p>
|
||||
</form>
|
||||
</form>
|
||||
';
|
||||
return apply_filters('the_password_form', $output);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user