Make WordPress Core


Ignore:
Timestamp:
10/09/2024 01:26:13 AM (17 months ago)
Author:
andrewserong
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/style-engine/class-wp-style-engine.php

    r58834 r59199  
    2626 * @since 6.5.0 Added support for background.backgroundPosition,
    2727 *              background.backgroundRepeat and dimensions.aspectRatio.
     28 * @since 6.7.0 Added support for typography.writingMode.
    2829 */
    2930#[AllowDynamicProperties]
     
    305306                ),
    306307                'path'          => array( 'typography', 'letterSpacing' ),
     308            ),
     309            'writingMode'    => array(
     310                'property_keys' => array(
     311                    'default' => 'writing-mode',
     312                ),
     313                'path'          => array( 'typography', 'writingMode' ),
    307314            ),
    308315        ),
Note: See TracChangeset for help on using the changeset viewer.