From 71e0fae484c5588b7b5101a3827a5265b653af9f Mon Sep 17 00:00:00 2001 From: Ramon Date: Wed, 28 Aug 2024 16:23:43 +1000 Subject: [PATCH] Typography: backport comment changes only (#64859) --- lib/block-supports/typography.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/block-supports/typography.php b/lib/block-supports/typography.php index c6ef59970de8c6..a4719b7bdd4099 100644 --- a/lib/block-supports/typography.php +++ b/lib/block-supports/typography.php @@ -449,7 +449,7 @@ function gutenberg_get_computed_fluid_typography_value( $args = array() ) { * @since 6.3.0 Using layout.wideSize as max viewport width, and logarithmic scale factor to calculate minimum font scale. * @since 6.4.0 Added configurable min and max viewport width values to the typography.fluid theme.json schema. * @since 6.6.0 Deprecated bool argument $should_use_fluid_typography. - * @since 6.7.0 Enabled individual block fluid typography settings overrides. + * @since 6.7.0 Font size presets can enable fluid typography individually, even if it’s disabled globally. * * @param array $preset { * Required. fontSizes preset value as seen in theme.json. @@ -509,7 +509,6 @@ function gutenberg_get_typography_font_size_value( $preset, $settings = array() return $preset['size']; } - // $typography_settings['fluid'] can be a bool or an array. Normalize to array. $fluid_settings = isset( $typography_settings['fluid'] ) ? $typography_settings['fluid'] : array(); $layout_settings = isset( $settings['layout'] ) ? $settings['layout'] : array();