summaryrefslogtreecommitdiffstatshomepage
path: root/src/wp-includes
diff options
context:
space:
mode:
Diffstat (limited to 'src/wp-includes')
-rw-r--r--src/wp-includes/post-template.php6
-rw-r--r--src/wp-includes/theme.json7
2 files changed, 9 insertions, 4 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>
';
diff --git a/src/wp-includes/theme.json b/src/wp-includes/theme.json
index 32873854e4..641c379557 100644
--- a/src/wp-includes/theme.json
+++ b/src/wp-includes/theme.json
@@ -373,7 +373,12 @@
"background": "#32373c"
},
"spacing": {
- "padding": "calc(0.667em + 2px) calc(1.333em + 2px)"
+ "padding": {
+ "top": "calc(0.667em + 2px)",
+ "right": "calc(1.333em + 2px)",
+ "bottom": "calc(0.667em + 2px)",
+ "left": "calc(1.333em + 2px)"
+ }
},
"typography": {
"fontSize": "inherit",