Make WordPress Core


Ignore:
Timestamp:
09/29/2022 07:43:33 PM (2 years ago)
Author:
davidbaumwald
Message:

Editor: Ensure settings for fluid typography and spacingScale are not lost on theme export.

This change adds fluid typography as a valid setting and removes spacingScale from the array of presets.

Props glendaviesnz, ramonopoly, tellthemachines.
See #55646.

File:
1 edited

Legend:

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

    r54306 r54360  
    174174            'properties'        => array( 'padding', 'margin' ),
    175175        ),
    176         array(
    177             'path'              => array( 'spacing', 'spacingScale' ),
    178             'prevent_override'  => false,
    179             'use_default_names' => true,
    180             'value_key'         => 'size',
    181             'css_vars'          => '--wp--preset--spacing--$slug',
    182             'classes'           => array(),
    183             'properties'        => array( 'padding', 'margin' ),
    184         ),
    185176    );
    186177
     
    335326        ),
    336327        'typography'                    => array(
     328            'fluid'          => null,
    337329            'customFontSize' => null,
    338330            'dropCap'        => null,
Note: See TracChangeset for help on using the changeset viewer.