Skip to content

Commit

Permalink
Typography: backport comment changes only (#64859)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd authored Aug 28, 2024
1 parent 1e84959 commit 71e0fae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/block-supports/typography.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 71e0fae

Please sign in to comment.