From 0c54c14a371a68c7da33ea2e3ee138766970c306 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Thu, 25 Nov 2021 22:31:04 +0000 Subject: [PATCH] Twenty Twenty One: Remove Image block placeholder alignment override in editor styles. This changes excludes the Image block placeholder from the default image centering in Twenty Twenty-One editor styles. Props multidots1896, sabernhardt, Boniu91, justinahinon. Fixes #54254. Built from https://develop.svn.wordpress.org/trunk@52250 git-svn-id: http://core.svn.wordpress.org/trunk@51842 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentytwentyone/assets/css/ie-editor.css | 2 +- wp-content/themes/twentytwentyone/assets/css/style-editor.css | 2 +- .../twentytwentyone/assets/sass/05-blocks/image/_editor.scss | 2 +- wp-includes/version.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-content/themes/twentytwentyone/assets/css/ie-editor.css b/wp-content/themes/twentytwentyone/assets/css/ie-editor.css index d3bbb93c11..5afd750a7a 100644 --- a/wp-content/themes/twentytwentyone/assets/css/ie-editor.css +++ b/wp-content/themes/twentytwentyone/assets/css/ie-editor.css @@ -1197,7 +1197,7 @@ h6, /* Center image block by default in the editor */ .wp-block-image, -.wp-block-image > div { +.wp-block-image > div:not(.components-placeholder) { text-align: center; } diff --git a/wp-content/themes/twentytwentyone/assets/css/style-editor.css b/wp-content/themes/twentytwentyone/assets/css/style-editor.css index 8f61bab00c..d6019c45bb 100644 --- a/wp-content/themes/twentytwentyone/assets/css/style-editor.css +++ b/wp-content/themes/twentytwentyone/assets/css/style-editor.css @@ -1128,7 +1128,7 @@ h6, /* Center image block by default in the editor */ .wp-block-image, -.wp-block-image > div { +.wp-block-image > div:not(.components-placeholder) { text-align: center; } diff --git a/wp-content/themes/twentytwentyone/assets/sass/05-blocks/image/_editor.scss b/wp-content/themes/twentytwentyone/assets/sass/05-blocks/image/_editor.scss index dcbf6d3511..c108a60f9a 100644 --- a/wp-content/themes/twentytwentyone/assets/sass/05-blocks/image/_editor.scss +++ b/wp-content/themes/twentytwentyone/assets/sass/05-blocks/image/_editor.scss @@ -1,7 +1,7 @@ /* Center image block by default in the editor */ .wp-block-image, -.wp-block-image > div { +.wp-block-image > div:not(.components-placeholder) { text-align: center; } diff --git a/wp-includes/version.php b/wp-includes/version.php index b9007413b5..e62f640429 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-52249'; +$wp_version = '5.9-alpha-52250'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.