diff --git a/lib/block-supports/typography.php b/lib/block-supports/typography.php index 63f7f292a88bc9..cb687b195cd362 100644 --- a/lib/block-supports/typography.php +++ b/lib/block-supports/typography.php @@ -76,7 +76,7 @@ function gutenberg_apply_typography_support( $block_type, $block_attributes ) { if ( $has_named_font_size ) { $classes[] = sprintf( 'has-%s-font-size', $block_attributes['fontSize'] ); } elseif ( $has_custom_font_size ) { - $styles[] = sprintf( 'font-size: %spx;', $block_attributes['style']['typography']['fontSize'] ); + $styles[] = sprintf( 'font-size: %s;', $block_attributes['style']['typography']['fontSize'] ); } }