Make WordPress Core


Ignore:
Timestamp:
09/27/2023 06:59:01 PM (18 months ago)
Author:
costdev
Message:

Editor: Don't use fluid layout value in typography.

Changes fluid typography calculation to use fallback value if layout wide size is a fluid value.

Props ramonopoly, mukesh27, jastos, aurooba.
Merges [56503] to the 6.3 branch.
Fixes #58754.

Location:
branches/6.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.3

  • branches/6.3/src/wp-includes/block-supports/typography.php

    r55985 r56737  
    518518
    519519    // Defaults.
    520     $default_maximum_viewport_width       = isset( $layout_settings['wideSize'] ) ? $layout_settings['wideSize'] : '1600px';
     520    $default_maximum_viewport_width       = isset( $layout_settings['wideSize'] ) && ! empty( wp_get_typography_value_and_unit( $layout_settings['wideSize'] ) ) ? $layout_settings['wideSize'] : '1600px';
    521521    $default_minimum_viewport_width       = '320px';
    522522    $default_minimum_font_size_factor_max = 0.75;
Note: See TracChangeset for help on using the changeset viewer.