Changeset 56605
- Timestamp:
- 09/18/2023 06:47:44 AM (20 months ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 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( -
trunk/src/wp-includes/class-wp-theme-json.php
r56559 r56605 204 204 * @since 6.2.0 Added `outline-*`, and `min-height` properties. 205 205 * @since 6.3.0 Added `column-count` property. 206 * @since 6.4.0 Added `writing-mode` property. 206 207 * 207 208 * @var array … … 262 263 'filter' => array( 'filter', 'duotone' ), 263 264 'box-shadow' => array( 'shadow' ), 265 'writing-mode' => array( 'typography', 'writingMode' ), 264 266 ); 265 267 … … 341 343 * `position.fixed` and `position.sticky`. 342 344 * @since 6.3.0 Added support for `typography.textColumns`, removed `layout.definitions`. 343 * @since 6.4.0 Added `layout.allowEditing` .345 * @since 6.4.0 Added `layout.allowEditing` and `typography.writingMode`. 344 346 * 345 347 * @var array … … 410 412 'textDecoration' => null, 411 413 'textTransform' => null, 414 'writingMode' => null, 412 415 ), 413 416 ); … … 472 475 'textDecoration' => null, 473 476 'textTransform' => null, 477 'writingMode' => null, 474 478 ), 475 479 'css' => null, -
trunk/src/wp-includes/theme.json
r56055 r56605 264 264 "lineHeight": false, 265 265 "textDecoration": true, 266 "textTransform": true 266 "textTransform": true, 267 "writingMode": false 267 268 }, 268 269 "blocks": {
Note: See TracChangeset
for help on using the changeset viewer.