From cbacd3c3563a4e8421534e1e7d3279f6a47c5577 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Tue, 8 Jun 2021 18:05:35 +0000 Subject: [PATCH] Block Editor: Fix typo in the typography block support. The function wp_typography_get_css_variable_inline_style has been renamed when backported to Core. But its usage was untouched causing potential php errors on the frontend. See #52991. git-svn-id: https://develop.svn.wordpress.org/trunk@51104 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/block-supports/typography.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-includes/block-supports/typography.php b/src/wp-includes/block-supports/typography.php index c6e71662d0..2d9f69e773 100644 --- a/src/wp-includes/block-supports/typography.php +++ b/src/wp-includes/block-supports/typography.php @@ -124,14 +124,14 @@ function wp_apply_typography_support( $block_type, $block_attributes ) { } if ( $has_font_style_support ) { - $font_style = gutenberg_typography_get_css_variable_inline_style( $block_attributes, 'fontStyle', 'font-style' ); + $font_style = wp_typography_get_css_variable_inline_style( $block_attributes, 'fontStyle', 'font-style' ); if ( $font_style ) { $styles[] = $font_style; } } if ( $has_font_weight_support ) { - $font_weight = gutenberg_typography_get_css_variable_inline_style( $block_attributes, 'fontWeight', 'font-weight' ); + $font_weight = wp_typography_get_css_variable_inline_style( $block_attributes, 'fontWeight', 'font-weight' ); if ( $font_weight ) { $styles[] = $font_weight; } @@ -145,14 +145,14 @@ function wp_apply_typography_support( $block_type, $block_attributes ) { } if ( $has_text_decoration_support ) { - $text_decoration_style = gutenberg_typography_get_css_variable_inline_style( $block_attributes, 'textDecoration', 'text-decoration' ); + $text_decoration_style = wp_typography_get_css_variable_inline_style( $block_attributes, 'textDecoration', 'text-decoration' ); if ( $text_decoration_style ) { $styles[] = $text_decoration_style; } } if ( $has_text_transform_support ) { - $text_transform_style = gutenberg_typography_get_css_variable_inline_style( $block_attributes, 'textTransform', 'text-transform' ); + $text_transform_style = wp_typography_get_css_variable_inline_style( $block_attributes, 'textTransform', 'text-transform' ); if ( $text_transform_style ) { $styles[] = $text_transform_style; }