From fd798307a0c3c7058eec1c88d80ccd0ab5e07b08 Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Mon, 27 May 2024 12:43:11 +0000 Subject: [PATCH] Twenty Seventeen: Resolves image block caption text alignment inconsitency. The caption for image block was misaligned. The issue appeared in 5.8 due to the block class name change making the selector meaningless. This is resolved by a change in the selectors. Props nkeller15, sabernhardt, thakordarshil, anilvaza, shailu25, pavanpatil1, darshitrajyaguru97. Fixes #58539. Built from https://develop.svn.wordpress.org/trunk@58207 git-svn-id: http://core.svn.wordpress.org/trunk@57670 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../twentyseventeen/assets/css/editor-blocks.css | 10 +++++++--- wp-includes/version.php | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/wp-content/themes/twentyseventeen/assets/css/editor-blocks.css b/wp-content/themes/twentyseventeen/assets/css/editor-blocks.css index c17df295a3..60907122cd 100644 --- a/wp-content/themes/twentyseventeen/assets/css/editor-blocks.css +++ b/wp-content/themes/twentyseventeen/assets/css/editor-blocks.css @@ -458,15 +458,19 @@ html[lang="th"] .edit-post-visual-editor * { margin-top: 0.5em; } -/* Caption styles*/ +/* Caption styles */ -[class^="wp-block-"]:not(.wp-block-gallery) figcaption { +[class^="wp-block-"]:not(.wp-block-gallery) > figcaption, +[class*=" wp-block-"]:not(.wp-block-gallery) > figcaption { font-style: italic; margin-bottom: 1.5em; text-align: left; } -.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption { +.rtl [class^="wp-block-"]:not(.wp-block-gallery) > figcaption, +.rtl [class*=" wp-block-"]:not(.wp-block-gallery) > figcaption, +[dir="rtl"] [class^="wp-block-"]:not(.wp-block-gallery) > figcaption, +[dir="rtl"] [class*=" wp-block-"]:not(.wp-block-gallery) > figcaption { text-align: right; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 3f0ade7568..4cd52d7cc2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-58206'; +$wp_version = '6.6-alpha-58207'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.