Changeset 49580 for trunk/src/wp-includes/block-supports/typography.php
- Timestamp:
- 11/12/2020 08:18:08 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/typography.php
r49226 r49580 16 16 $has_font_size_support = false; 17 17 if ( property_exists( $block_type, 'supports' ) ) { 18 $has_font_size_support = wp_array_get( $block_type->supports, array( '__experimentalFontSize' ), false );18 $has_font_size_support = _wp_array_get( $block_type->supports, array( '__experimentalFontSize' ), false ); 19 19 } 20 20 21 21 $has_line_height_support = false; 22 22 if ( property_exists( $block_type, 'supports' ) ) { 23 $has_line_height_support = wp_array_get( $block_type->supports, array( '__experimentalLineHeight' ), false );23 $has_line_height_support = _wp_array_get( $block_type->supports, array( '__experimentalLineHeight' ), false ); 24 24 } 25 25 … … 57 57 $styles = array(); 58 58 if ( property_exists( $block_type, 'supports' ) ) { 59 $has_font_size_support = wp_array_get( $block_type->supports, array( 'fontSize' ), false );59 $has_font_size_support = _wp_array_get( $block_type->supports, array( 'fontSize' ), false ); 60 60 } 61 61 62 62 $has_line_height_support = false; 63 63 if ( property_exists( $block_type, 'supports' ) ) { 64 $has_line_height_support = wp_array_get( $block_type->supports, array( 'lineHeight' ), false );64 $has_line_height_support = _wp_array_get( $block_type->supports, array( 'lineHeight' ), false ); 65 65 } 66 66
Note: See TracChangeset
for help on using the changeset viewer.