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. Built from https://develop.svn.wordpress.org/trunk@54360 git-svn-id: http://core.svn.wordpress.org/trunk@53919 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fc0840a5f5
commit
0296dc6d98
|
@ -173,15 +173,6 @@ class WP_Theme_JSON {
|
|||
'classes' => array(),
|
||||
'properties' => array( 'padding', 'margin' ),
|
||||
),
|
||||
array(
|
||||
'path' => array( 'spacing', 'spacingScale' ),
|
||||
'prevent_override' => false,
|
||||
'use_default_names' => true,
|
||||
'value_key' => 'size',
|
||||
'css_vars' => '--wp--preset--spacing--$slug',
|
||||
'classes' => array(),
|
||||
'properties' => array( 'padding', 'margin' ),
|
||||
),
|
||||
);
|
||||
|
||||
/**
|
||||
|
@ -334,6 +325,7 @@ class WP_Theme_JSON {
|
|||
'units' => null,
|
||||
),
|
||||
'typography' => array(
|
||||
'fluid' => null,
|
||||
'customFontSize' => null,
|
||||
'dropCap' => null,
|
||||
'fontFamilies' => null,
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.1-beta2-54359';
|
||||
$wp_version = '6.1-beta2-54360';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue