From f53eb5b29b8d42cbf777ddf7605e06958a9e062e Mon Sep 17 00:00:00 2001 From: andrewserong Date: Wed, 9 Oct 2024 01:28:13 +0000 Subject: [PATCH] Editor: Fix writingMode support in dynamic blocks. Adds missing handling for the `typography.writingMode` property to the style engine, so that dynamic blocks correctly render text orientation styles on the site frontend. Props wildworks, aaronrobertshaw, poena, get_dave, ndiego. Fixes #62189. See #59306. Built from https://develop.svn.wordpress.org/trunk@59199 git-svn-id: http://core.svn.wordpress.org/trunk@58594 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/style-engine/class-wp-style-engine.php | 7 +++++++ wp-includes/version.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/wp-includes/style-engine/class-wp-style-engine.php b/wp-includes/style-engine/class-wp-style-engine.php index 3012ca3eef..5582aacbb1 100644 --- a/wp-includes/style-engine/class-wp-style-engine.php +++ b/wp-includes/style-engine/class-wp-style-engine.php @@ -25,6 +25,7 @@ * @since 6.4.0 Added support for background.backgroundImage. * @since 6.5.0 Added support for background.backgroundPosition, * background.backgroundRepeat and dimensions.aspectRatio. + * @since 6.7.0 Added support for typography.writingMode. */ #[AllowDynamicProperties] final class WP_Style_Engine { @@ -305,6 +306,12 @@ final class WP_Style_Engine { ), 'path' => array( 'typography', 'letterSpacing' ), ), + 'writingMode' => array( + 'property_keys' => array( + 'default' => 'writing-mode', + ), + 'path' => array( 'typography', 'writingMode' ), + ), ), ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 8feefe16a7..a1656999a3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-beta2-59198'; +$wp_version = '6.7-beta2-59199'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.