Make WordPress Core

Changeset 51104


Ignore:
Timestamp:
06/08/2021 06:05:35 PM (4 years ago)
Author:
youknowriad
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-supports/typography.php

    r51089 r51104  
    125125
    126126    if ( $has_font_style_support ) {
    127         $font_style = gutenberg_typography_get_css_variable_inline_style( $block_attributes, 'fontStyle', 'font-style' );
     127        $font_style = wp_typography_get_css_variable_inline_style( $block_attributes, 'fontStyle', 'font-style' );
    128128        if ( $font_style ) {
    129129            $styles[] = $font_style;
     
    132132
    133133    if ( $has_font_weight_support ) {
    134         $font_weight = gutenberg_typography_get_css_variable_inline_style( $block_attributes, 'fontWeight', 'font-weight' );
     134        $font_weight = wp_typography_get_css_variable_inline_style( $block_attributes, 'fontWeight', 'font-weight' );
    135135        if ( $font_weight ) {
    136136            $styles[] = $font_weight;
     
    146146
    147147    if ( $has_text_decoration_support ) {
    148         $text_decoration_style = gutenberg_typography_get_css_variable_inline_style( $block_attributes, 'textDecoration', 'text-decoration' );
     148        $text_decoration_style = wp_typography_get_css_variable_inline_style( $block_attributes, 'textDecoration', 'text-decoration' );
    149149        if ( $text_decoration_style ) {
    150150            $styles[] = $text_decoration_style;
     
    153153
    154154    if ( $has_text_transform_support ) {
    155         $text_transform_style = gutenberg_typography_get_css_variable_inline_style( $block_attributes, 'textTransform', 'text-transform' );
     155        $text_transform_style = wp_typography_get_css_variable_inline_style( $block_attributes, 'textTransform', 'text-transform' );
    156156        if ( $text_transform_style ) {
    157157            $styles[] = $text_transform_style;
Note: See TracChangeset for help on using the changeset viewer.