From c454b4fa56fe82f4a53a9a4106958754e7157270 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 15 Feb 2024 22:18:10 +0000 Subject: [PATCH] Twenty Nineteen: Update selectors used to change the primary color in the Customizer. The `.editor-block-list__block` class was removed in WordPress 5.4. It is now replaced with a selector that works in the current versions and is backward compatible. Follow-up to [43842]. Props poena, faisal03, ashikur698. Fixes #59922. Built from https://develop.svn.wordpress.org/trunk@57637 git-svn-id: http://core.svn.wordpress.org/trunk@57138 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../twentynineteen/inc/color-patterns.php | 38 +++++++++---------- wp-includes/version.php | 2 +- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/wp-content/themes/twentynineteen/inc/color-patterns.php b/wp-content/themes/twentynineteen/inc/color-patterns.php index abe3419fa9..b4faedb225 100644 --- a/wp-content/themes/twentynineteen/inc/color-patterns.php +++ b/wp-content/themes/twentynineteen/inc/color-patterns.php @@ -214,42 +214,42 @@ function twentynineteen_custom_colors_css() { * - pullquote (solid color) * - buttons */ - .editor-block-list__layout .editor-block-list__block a, - .editor-block-list__layout .editor-block-list__block .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color), - .editor-block-list__layout .editor-block-list__block .wp-block-button.is-style-outline:hover .wp-block-button__link:not(.has-text-color), - .editor-block-list__layout .editor-block-list__block .wp-block-button.is-style-outline:focus .wp-block-button__link:not(.has-text-color), - .editor-block-list__layout .editor-block-list__block .wp-block-button.is-style-outline:active .wp-block-button__link:not(.has-text-color), - .editor-block-list__layout .editor-block-list__block .wp-block-file .wp-block-file__textlink { + .editor-styles-wrapper .wp-block a, + .editor-styles-wrapper .wp-block .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color), + .editor-styles-wrapper .wp-block .wp-block-button.is-style-outline:hover .wp-block-button__link:not(.has-text-color), + .editor-styles-wrapper .wp-block .wp-block-button.is-style-outline:focus .wp-block-button__link:not(.has-text-color), + .editor-styles-wrapper .wp-block .wp-block-button.is-style-outline:active .wp-block-button__link:not(.has-text-color), + .editor-styles-wrapper .wp-block .wp-block-file .wp-block-file__textlink { color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */ } - .editor-block-list__layout .editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large), - .editor-styles-wrapper .editor-block-list__layout .wp-block-freeform blockquote { + .editor-styles-wrapper .wp-block.wp-block-quote:not(.is-large):not(.is-style-large), + .editor-styles-wrapper .wp-block .wp-block-freeform blockquote { border-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */ } - .editor-block-list__layout .editor-block-list__block .wp-block-pullquote.is-style-solid-color:not(.has-background-color) { + .editor-styles-wrapper .wp-block.wp-block-pullquote.is-style-solid-color:not(.has-background-color) { background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */ } - .editor-block-list__layout .editor-block-list__block .wp-block-file .wp-block-file__button, - .editor-block-list__layout .editor-block-list__block .wp-block-button:not(.is-style-outline) .wp-block-button__link, - .editor-block-list__layout .editor-block-list__block .wp-block-button:not(.is-style-outline) .wp-block-button__link:active, - .editor-block-list__layout .editor-block-list__block .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus, - .editor-block-list__layout .editor-block-list__block .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { + .editor-styles-wrapper .wp-block.wp-block-file .wp-block-file__button, + .editor-styles-wrapper .wp-block .wp-block-button:not(.is-style-outline) .wp-block-button__link, + .editor-styles-wrapper .wp-block .wp-block-button:not(.is-style-outline) .wp-block-button__link:active, + .editor-styles-wrapper .wp-block .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus, + .editor-styles-wrapper .wp-block .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */ } /* Hover colors */ - .editor-block-list__layout .editor-block-list__block a:hover, - .editor-block-list__layout .editor-block-list__block a:active, - .editor-block-list__layout .editor-block-list__block .wp-block-file .wp-block-file__textlink:hover { + .editor-styles-wrapper .wp-block a:hover, + .editor-styles-wrapper .wp-block a:active, + .editor-styles-wrapper .wp-block.wp-block-file .wp-block-file__textlink:hover { color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness_hover . ' ); /* base: #005177; */ } /* Do not overwrite solid color pullquote or cover links */ - .editor-block-list__layout .editor-block-list__block .wp-block-pullquote.is-style-solid-color a, - .editor-block-list__layout .editor-block-list__block .wp-block-cover a { + .editor-styles-wrapper .wp-block.wp-block-pullquote.is-style-solid-color a, + .editor-styles-wrapper .wp-block.wp-block-cover a { color: inherit; } '; diff --git a/wp-includes/version.php b/wp-includes/version.php index 638b8e586d..6acfced8c0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.5-beta1-57636'; +$wp_version = '6.5-beta1-57637'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.