Skip to content

Commit 0f53147

Browse files
Text Changes: Improve the post password form message for clarity and consistency.
Follow-up to [323], [394], [9138], [25582], [59736]. Props Tyrannous. Fixes #63301. git-svn-id: https://develop.svn.wordpress.org/trunk@60222 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 4dd067f commit 0f53147

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wp-includes/post-template.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1771,7 +1771,7 @@ function prepend_attachment( $content ) {
17711771
* @since 1.0.0
17721772
*
17731773
* @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post.
1774-
* @return string HTML content for password form for password protected post.
1774+
* @return string HTML content for password form for password-protected post.
17751775
*/
17761776
function get_the_password_form( $post = 0 ) {
17771777
$post = get_post( $post );
@@ -1786,7 +1786,7 @@ function get_the_password_form( $post = 0 ) {
17861786
if ( ! empty( $post->ID ) && wp_get_raw_referer() === get_permalink( $post->ID ) && isset( $_COOKIE[ 'wp-postpass_' . COOKIEHASH ] ) ) {
17871787
/**
17881788
* Filters the invalid password message shown on password-protected posts.
1789-
* The filter is only applied if the post is password protected.
1789+
* The filter is only applied if the post is password-protected.
17901790
*
17911791
* @since 6.8.0
17921792
*
@@ -1807,7 +1807,7 @@ function get_the_password_form( $post = 0 ) {
18071807
}
18081808

18091809
$output = '<form action="' . esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ) . '" class="post-password-form' . $class . '" method="post">' . $redirect_field . $invalid_password_html . '
1810-
<p>' . __( 'This content is password protected. To view it please enter your password below:' ) . '</p>
1810+
<p>' . __( 'This content is password-protected. To view it, please enter the password below.' ) . '</p>
18111811
<p><label for="' . $field_id . '">' . __( 'Password:' ) . ' <input name="post_password" id="' . $field_id . '" type="password" spellcheck="false" required size="20"' . $aria . ' /></label> <input type="submit" name="Submit" value="' . esc_attr_x( 'Enter', 'post password form' ) . '" /></p></form>
18121812
';
18131813

0 commit comments

Comments
 (0)