From 6703f8efee8b4622559b2100c86e5df3956e2580 Mon Sep 17 00:00:00 2001 From: desrosj Date: Thu, 12 Nov 2020 19:30:11 +0000 Subject: [PATCH] Twenty Twenty-One: Use consistent casing in strings. This converts strings using Title Case to sentence case, which is currently preferred for consistency (see discussions on #40244). Also included is the replacement of an escaped apostrophe with `’`, which is also preferred per the Internationalization guidelines. See #51526. Built from https://develop.svn.wordpress.org/trunk@49578 git-svn-id: http://core.svn.wordpress.org/trunk@49316 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../class-twenty-twenty-one-customize.php | 2 +- .../class-twenty-twenty-one-dark-mode.php | 6 ++--- .../themes/twentytwentyone/comments.php | 4 ++-- wp-content/themes/twentytwentyone/footer.php | 2 +- .../themes/twentytwentyone/functions.php | 24 +++++++++---------- .../twentytwentyone/inc/block-patterns.php | 18 +++++++------- .../twentytwentyone/inc/block-styles.php | 2 +- .../twentytwentyone/inc/menu-functions.php | 2 +- .../twentytwentyone/inc/starter-content.php | 4 ++-- .../template-parts/header/site-nav.php | 2 +- wp-includes/version.php | 2 +- 11 files changed, 34 insertions(+), 34 deletions(-) diff --git a/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-customize.php b/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-customize.php index fda1e6e094..1abdd70daf 100644 --- a/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-customize.php +++ b/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-customize.php @@ -140,7 +140,7 @@ if ( ! class_exists( 'Twenty_Twenty_One_Customize' ) ) { $wp_customize, 'background_color', array( - 'label' => esc_html_x( 'Background Color', 'Customizer control', 'twentytwentyone' ), + 'label' => esc_html_x( 'Background color', 'Customizer control', 'twentytwentyone' ), 'section' => 'colors', 'palette' => $colors, ) diff --git a/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php b/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php index 959c80dd6f..68d120f827 100644 --- a/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php +++ b/wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-dark-mode.php @@ -165,8 +165,8 @@ class Twenty_Twenty_One_Dark_Mode { array( 'type' => 'checkbox', 'section' => 'colors', - 'label' => esc_html__( 'Dark Mode Support', 'twentytwentyone' ), - 'description' => __( 'Respect visitor\'s device dark mode settings.
Dark mode is a device setting. If a visitor to your site requests it, your site will be shown with a dark background and light text.

Dark Mode can also be turned on and off with a button that you can find in the bottom right corner of the page.', 'twentytwentyone' ), + 'label' => esc_html__( 'Dark Mode support', 'twentytwentyone' ), + 'description' => __( 'Respect visitor’s device dark mode settings.
Dark mode is a device setting. If a visitor to your site requests it, your site will be shown with a dark background and light text.

Dark Mode can also be turned on and off with a button that you can find in the bottom right corner of the page.', 'twentytwentyone' ), 'active_callback' => function( $value ) { return 127 < Twenty_Twenty_One_Custom_Colors::get_relative_luminance_from_hex( get_theme_mod( 'background_color', 'D1E4DD' ) ); }, @@ -402,7 +402,7 @@ class Twenty_Twenty_One_Dark_Mode { return; } $content = '

' . __( 'Twenty Twenty-One uses LocalStorage when Dark Mode support is enabled.', 'twentytwentyone' ) . '

' - . '' . __( 'Suggested Text:', 'twentytwentyone' ) . ' ' + . '' . __( 'Suggested text:', 'twentytwentyone' ) . ' ' . __( 'This website uses LocalStorage to save the setting when Dark Mode support is turned on or off.
LocalStorage is necessary for the setting to work and is only used when a user clicks on the Dark Mode button.
No data is saved in the database or transferred.', 'twentytwentyone' ); wp_add_privacy_policy_content( 'Twenty Twenty-One', wp_kses_post( wpautop( $content, false ) ) ); } diff --git a/wp-content/themes/twentytwentyone/comments.php b/wp-content/themes/twentytwentyone/comments.php index d832fcf487..bad32f83d6 100644 --- a/wp-content/themes/twentytwentyone/comments.php +++ b/wp-content/themes/twentytwentyone/comments.php @@ -32,12 +32,12 @@ $twenty_twenty_one_comment_count = get_comments_number(); ?>

- + diff --git a/wp-content/themes/twentytwentyone/footer.php b/wp-content/themes/twentytwentyone/footer.php index 3c509c8913..b0c26e4fe6 100644 --- a/wp-content/themes/twentytwentyone/footer.php +++ b/wp-content/themes/twentytwentyone/footer.php @@ -21,7 +21,7 @@