Changeset 55985 for trunk/src/wp-includes/block-supports/typography.php
- Timestamp:
- 06/22/2023 08:16:05 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/typography.php
r55947 r55985 11 11 * 12 12 * @since 5.6.0 13 * @since 6.3.0 Added support for text-columns. 13 14 * @access private 14 15 * … … 31 32 $has_letter_spacing_support = _wp_array_get( $typography_supports, array( '__experimentalLetterSpacing' ), false ); 32 33 $has_line_height_support = _wp_array_get( $typography_supports, array( 'lineHeight' ), false ); 34 $has_text_columns_support = _wp_array_get( $typography_supports, array( 'textColumns' ), false ); 33 35 $has_text_decoration_support = _wp_array_get( $typography_supports, array( '__experimentalTextDecoration' ), false ); 34 36 $has_text_transform_support = _wp_array_get( $typography_supports, array( '__experimentalTextTransform' ), false ); … … 40 42 || $has_letter_spacing_support 41 43 || $has_line_height_support 44 || $has_text_columns_support 42 45 || $has_text_decoration_support 43 46 || $has_text_transform_support; … … 73 76 * @since 5.6.0 74 77 * @since 6.1.0 Used the style engine to generate CSS and classnames. 78 * @since 6.3.0 Added support for text-columns. 75 79 * @access private 76 80 * … … 99 103 $has_letter_spacing_support = _wp_array_get( $typography_supports, array( '__experimentalLetterSpacing' ), false ); 100 104 $has_line_height_support = _wp_array_get( $typography_supports, array( 'lineHeight' ), false ); 105 $has_text_columns_support = _wp_array_get( $typography_supports, array( 'textColumns' ), false ); 101 106 $has_text_decoration_support = _wp_array_get( $typography_supports, array( '__experimentalTextDecoration' ), false ); 102 107 $has_text_transform_support = _wp_array_get( $typography_supports, array( '__experimentalTextTransform' ), false ); … … 108 113 $should_skip_font_weight = wp_should_skip_block_supports_serialization( $block_type, 'typography', 'fontWeight' ); 109 114 $should_skip_line_height = wp_should_skip_block_supports_serialization( $block_type, 'typography', 'lineHeight' ); 115 $should_skip_text_columns = wp_should_skip_block_supports_serialization( $block_type, 'typography', 'textColumns' ); 110 116 $should_skip_text_decoration = wp_should_skip_block_supports_serialization( $block_type, 'typography', 'textDecoration' ); 111 117 $should_skip_text_transform = wp_should_skip_block_supports_serialization( $block_type, 'typography', 'textTransform' ); … … 163 169 } 164 170 171 if ( $has_text_columns_support && ! $should_skip_text_columns && isset( $block_attributes['style']['typography']['textColumns'] ) ) { 172 $typography_block_styles['textColumns'] = _wp_array_get( $block_attributes, array( 'style', 'typography', 'textColumns' ), null ); 173 } 174 165 175 if ( 166 176 $has_text_decoration_support &&
Note: See TracChangeset
for help on using the changeset viewer.