From 312f7d4b76be85dbe5008090981383e870ae1a96 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Mon, 6 Jun 2022 21:42:13 +0000 Subject: [PATCH] Twenty-Twenty: Fix paragraph block alignment issues when used on a RTL website. Twenty Twenty's `style.css` file has `/*rtl:ignore*/` for the `.has-text-align-left` class, but that was previously missing from the `.has-text-align-right` class. As a result, the theme overrides block library styles on the front-end (and not in the editor). This changeset adds the missing declaration. Props amirkamizi, mayankmajeji, ianbelanger, sabernhardt, hasanuzzamanshamim. Fixes #49447. Built from https://develop.svn.wordpress.org/trunk@53471 git-svn-id: http://core.svn.wordpress.org/trunk@53060 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentytwenty/style-rtl.css | 2 +- wp-content/themes/twentytwenty/style.css | 2 ++ wp-includes/version.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/twentytwenty/style-rtl.css b/wp-content/themes/twentytwenty/style-rtl.css index 77ec6bcb0b..f865da5967 100644 --- a/wp-content/themes/twentytwenty/style-rtl.css +++ b/wp-content/themes/twentytwenty/style-rtl.css @@ -2788,7 +2788,7 @@ h2.entry-title { } .has-text-align-right { - text-align: left; + text-align: right; } .has-drop-cap:not(:focus)::first-letter { diff --git a/wp-content/themes/twentytwenty/style.css b/wp-content/themes/twentytwenty/style.css index 231104da6c..f6a72a9e47 100644 --- a/wp-content/themes/twentytwenty/style.css +++ b/wp-content/themes/twentytwenty/style.css @@ -2806,6 +2806,8 @@ h2.entry-title { } .has-text-align-right { + + /*rtl:ignore*/ text-align: right; } diff --git a/wp-includes/version.php b/wp-includes/version.php index c36b17e9c5..d73d2d7adf 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53470'; +$wp_version = '6.1-alpha-53471'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.