diff options
author | Sergey Biryukov <sergeybiryukov@git.wordpress.org> | 2025-05-05 22:40:02 +0000 |
---|---|---|
committer | Sergey Biryukov <sergeybiryukov@git.wordpress.org> | 2025-05-05 22:40:02 +0000 |
commit | 0f5314739c80b9cdf22e13b272b69c7c9ea5df28 (patch) | |
tree | 5021d6aba547b6a890f7bfbd077050e5914c35de | |
parent | 4dd067fb80096acf764e9732f7cfddc4d433b485 (diff) | |
download | wordpress-0f5314739c80b9cdf22e13b272b69c7c9ea5df28.tar.gz wordpress-0f5314739c80b9cdf22e13b272b69c7c9ea5df28.zip |
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
-rw-r--r-- | src/wp-includes/post-template.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wp-includes/post-template.php b/src/wp-includes/post-template.php index d502cf4daa..edcc1e0f03 100644 --- a/src/wp-includes/post-template.php +++ b/src/wp-includes/post-template.php @@ -1771,7 +1771,7 @@ function prepend_attachment( $content ) { * @since 1.0.0 * * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global $post. - * @return string HTML content for password form for password protected post. + * @return string HTML content for password form for password-protected post. */ function get_the_password_form( $post = 0 ) { $post = get_post( $post ); @@ -1786,7 +1786,7 @@ function get_the_password_form( $post = 0 ) { if ( ! empty( $post->ID ) && wp_get_raw_referer() === get_permalink( $post->ID ) && isset( $_COOKIE[ 'wp-postpass_' . COOKIEHASH ] ) ) { /** * Filters the invalid password message shown on password-protected posts. - * The filter is only applied if the post is password protected. + * The filter is only applied if the post is password-protected. * * @since 6.8.0 * @@ -1807,7 +1807,7 @@ function get_the_password_form( $post = 0 ) { } $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 . ' - <p>' . __( 'This content is password protected. To view it please enter your password below:' ) . '</p> + <p>' . __( 'This content is password-protected. To view it, please enter the password below.' ) . '</p> <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> '; |