From 3cd3ac227a2004410779e1b8af04aa2565b5bc58 Mon Sep 17 00:00:00 2001 From: youknowriad Date: Tue, 8 Jun 2021 18:06:59 +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. Built from https://develop.svn.wordpress.org/trunk@51104 git-svn-id: http://core.svn.wordpress.org/trunk@50713 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/block-supports/typography.php | 8 ++++---- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-includes/block-supports/typography.php b/wp-includes/block-supports/typography.php index c6e71662d0..2d9f69e773 100644 --- a/wp-includes/block-supports/typography.php +++ b/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; } diff --git a/wp-includes/version.php b/wp-includes/version.php index e6ccf4ffc1..083df3a142 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-51103'; +$wp_version = '5.8-alpha-51104'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.