From 463232238228d3eb111b0d4ceccc80e1e4e33c7a Mon Sep 17 00:00:00 2001 From: ianbelanger Date: Wed, 22 Apr 2020 19:25:08 +0000 Subject: [PATCH] Bundled Themes: Twenty Twenty resized images are centered inside the editor (with no alignment set) since WordPress 5.4. Fixes the image alignment issue by removing `margin-left: auto;` and `margin-right: auto;` from `.editor-styles-wrapper .wp-block-image.is-resized`. Props dianeco, JavierCasares. Fixes #49600. Built from https://develop.svn.wordpress.org/trunk@47613 git-svn-id: http://core.svn.wordpress.org/trunk@47388 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../twentytwenty/assets/css/editor-style-block-rtl.css | 5 ----- .../themes/twentytwenty/assets/css/editor-style-block.css | 5 ----- wp-includes/version.php | 2 +- 3 files changed, 1 insertion(+), 11 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 aaeed4338a..a78928d2a9 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 @@ -1054,11 +1054,6 @@ hr.wp-block-separator.is-style-dots::before { margin-top: 30px; } -.editor-styles-wrapper .wp-block-image.is-resized { - margin-right: auto; - margin-left: auto; -} - /* Block: Group ------------------------------ */ .editor-styles-wrapper .wp-block-group.has-background { 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 4e709dc59d..665a972e9c 100644 --- a/wp-content/themes/twentytwenty/assets/css/editor-style-block.css +++ b/wp-content/themes/twentytwenty/assets/css/editor-style-block.css @@ -1054,11 +1054,6 @@ hr.wp-block-separator.is-style-dots::before { margin-top: 30px; } -.editor-styles-wrapper .wp-block-image.is-resized { - margin-left: auto; - margin-right: auto; -} - /* Block: Group ------------------------------ */ .editor-styles-wrapper .wp-block-group.has-background { diff --git a/wp-includes/version.php b/wp-includes/version.php index 0ab37e6899..3ad6698cc3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-47612'; +$wp_version = '5.5-alpha-47613'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.