Changeset 56605 for trunk/src/wp-includes/block-supports/typography.php
- Timestamp:
- 09/18/2023 06:47:44 AM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/typography.php
r56535 r56605 35 35 $has_text_decoration_support = _wp_array_get( $typography_supports, array( '__experimentalTextDecoration' ), false ); 36 36 $has_text_transform_support = _wp_array_get( $typography_supports, array( '__experimentalTextTransform' ), false ); 37 $has_writing_mode_support = _wp_array_get( $typography_supports, array( '__experimentalWritingMode' ), false ); 37 38 38 39 $has_typography_support = $has_font_family_support … … 44 45 || $has_text_columns_support 45 46 || $has_text_decoration_support 46 || $has_text_transform_support; 47 || $has_text_transform_support 48 || $has_writing_mode_support; 47 49 48 50 if ( ! $block_type->attributes ) { … … 106 108 $has_text_decoration_support = _wp_array_get( $typography_supports, array( '__experimentalTextDecoration' ), false ); 107 109 $has_text_transform_support = _wp_array_get( $typography_supports, array( '__experimentalTextTransform' ), false ); 110 $has_writing_mode_support = _wp_array_get( $typography_supports, array( '__experimentalWritingMode' ), false ); 108 111 109 112 // Whether to skip individual block support features. … … 117 120 $should_skip_text_transform = wp_should_skip_block_supports_serialization( $block_type, 'typography', 'textTransform' ); 118 121 $should_skip_letter_spacing = wp_should_skip_block_supports_serialization( $block_type, 'typography', 'letterSpacing' ); 122 $should_skip_writing_mode = wp_should_skip_block_supports_serialization( $block_type, 'typography', 'writingMode' ); 119 123 120 124 $typography_block_styles = array(); … … 206 210 } 207 211 212 if ( $has_writing_mode_support && 213 ! $should_skip_writing_mode && 214 isset( $block_attributes['style']['typography']['writingMode'] ) 215 ) { 216 $typography_block_styles['writingMode'] = _wp_array_get( 217 $block_attributes, 218 array( 'style', 'typography', 'writingMode' ), 219 null 220 ); 221 } 222 208 223 $attributes = array(); 209 224 $styles = wp_style_engine_get_styles(
Note: See TracChangeset
for help on using the changeset viewer.