From c9ea34b6b36c9a30408487dba03fba5f5cb46e92 Mon Sep 17 00:00:00 2001 From: ianbelanger Date: Tue, 21 Apr 2020 19:17:08 +0000 Subject: [PATCH] Bundled Themes: Twenty Twenty block editor inserter is missing the `+`. Fixes the disappearing `+` in the block editor when using the latest version of the Gutenberg plugin, by adding support for the native Gutenberg editor styles and removing `color: inherit;` from Twenty Twenty's style.css. Props nrqsnchz, . Fixes #49610. Built from https://develop.svn.wordpress.org/trunk@47607 git-svn-id: http://core.svn.wordpress.org/trunk@47382 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../twentytwenty/assets/css/editor-style-block-rtl.css | 6 ------ .../themes/twentytwenty/assets/css/editor-style-block.css | 6 ------ wp-content/themes/twentytwenty/functions.php | 2 ++ wp-includes/version.php | 2 +- 4 files changed, 3 insertions(+), 13 deletions(-) diff --git a/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css b/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css index 4b3018a08d..aaeed4338a 100644 --- a/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css +++ b/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css @@ -30,12 +30,6 @@ font-size: inherit; } -.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover):not(:focus), -.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover):not(:focus) { - color: inherit; -} - - /* Fonts ------------------------------------- */ /* diff --git a/wp-content/themes/twentytwenty/assets/css/editor-style-block.css b/wp-content/themes/twentytwenty/assets/css/editor-style-block.css index 55d1446f31..4e709dc59d 100644 --- a/wp-content/themes/twentytwenty/assets/css/editor-style-block.css +++ b/wp-content/themes/twentytwenty/assets/css/editor-style-block.css @@ -30,12 +30,6 @@ font-size: inherit; } -.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle:not(:hover):not(:focus), -.block-editor-default-block-appender .block-editor-inserter .block-editor-inserter__toggle:not(:hover):not(:focus) { - color: inherit; -} - - /* Fonts ------------------------------------- */ /* diff --git a/wp-content/themes/twentytwenty/functions.php b/wp-content/themes/twentytwenty/functions.php index 5fe5f58e8a..47c950a44f 100644 --- a/wp-content/themes/twentytwenty/functions.php +++ b/wp-content/themes/twentytwenty/functions.php @@ -555,6 +555,8 @@ function twentytwenty_block_editor_settings() { ) ); + add_theme_support( 'editor-styles' ); + // If we have a dark background color then add support for dark editor style. // We can determine if the background color is dark by checking if the text-color is white. if ( '#ffffff' === strtolower( twentytwenty_get_color_for_area( 'content', 'text' ) ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 156aac6d80..98d625c0ad 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-47606'; +$wp_version = '5.5-alpha-47607'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.