Make WordPress Core


Ignore:
Timestamp:
10/11/2022 06:42:20 PM (4 years ago)
Author:
davidbaumwald
Message:

Editor: Merge latest fluid typography bugfixes for 6.1 Release Candidate 1.

Merges the following:

Follow-up to [54280].

Props andrewserong, isabel_brison, ramonopoly.
See #56467.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-theme-json.php

    r54411 r54497  
    16761676                        }
    16771677
     1678                        // Calculates fluid typography rules where available.
     1679                        if ( 'font-size' === $css_property ) {
     1680                                /*
     1681                                 * wp_get_typography_font_size_value() will check
     1682                                 * if fluid typography has been activated and also
     1683                                 * whether the incoming value can be converted to a fluid value.
     1684                                 * Values that already have a clamp() function will not pass the test,
     1685                                 * and therefore the original $value will be returned.
     1686                                 */
     1687                                $value = wp_get_typography_font_size_value( array( 'size' => $value ) );
     1688                        }
     1689
    16781690                        $declarations[] = array(
    16791691                                'name'  => $css_property,
Note: See TracChangeset for help on using the changeset viewer.