Skip to content

Commit 29d48fb

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@54360 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 68134e2 commit 29d48fb

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/wp-includes/class-wp-theme-json.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,6 @@ class WP_Theme_JSON {
173173
'classes' => array(),
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

187178
/**
@@ -334,6 +325,7 @@ class WP_Theme_JSON {
334325
'units' => null,
335326
),
336327
'typography' => array(
328+
'fluid' => null,
337329
'customFontSize' => null,
338330
'dropCap' => null,
339331
'fontFamilies' => null,

0 commit comments

Comments
 (0)