From 187d74719835ddeec27f6cfc14baec83a5f2c8c9 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Wed, 4 Sep 2019 16:47:10 +0000 Subject: [PATCH] Bundled Theme: Twenty Nineteen: Use human-friendly color names. For better accessibility, the Primary and Secondary theme colors have now more understandable names. Changes the names "Primary" and "Secondary" to "Blue" and "Dark Blue". Fallbacks to the `hex` color codes when the theme is set to use a custom Primary color. Props kjellr, aduth, audrasjb. Fixes #46698. Built from https://develop.svn.wordpress.org/trunk@45964 git-svn-id: http://core.svn.wordpress.org/trunk@45775 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentynineteen/functions.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-content/themes/twentynineteen/functions.php b/wp-content/themes/twentynineteen/functions.php index 91fad80756..901aa29990 100644 --- a/wp-content/themes/twentynineteen/functions.php +++ b/wp-content/themes/twentynineteen/functions.php @@ -143,12 +143,12 @@ if ( ! function_exists( 'twentynineteen_setup' ) ) : 'editor-color-palette', array( array( - 'name' => __( 'Primary', 'twentynineteen' ), + 'name' => 'default' === get_theme_mod( 'primary_color' ) ? __( 'Blue', 'twentynineteen' ) : null, 'slug' => 'primary', 'color' => twentynineteen_hsl_hex( 'default' === get_theme_mod( 'primary_color' ) ? 199 : get_theme_mod( 'primary_color_hue', 199 ), 100, 33 ), ), array( - 'name' => __( 'Secondary', 'twentynineteen' ), + 'name' => 'default' === get_theme_mod( 'primary_color' ) ? __( 'Dark Blue', 'twentynineteen' ) : null, 'slug' => 'secondary', 'color' => twentynineteen_hsl_hex( 'default' === get_theme_mod( 'primary_color' ) ? 199 : get_theme_mod( 'primary_color_hue', 199 ), 100, 23 ), ), diff --git a/wp-includes/version.php b/wp-includes/version.php index bf90a775f5..d31146053c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45942'; +$wp_version = '5.3-alpha-45964'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.