From 29d48fbb209e261eca8d97538735066ed3560842 Mon Sep 17 00:00:00 2001 From: David Baumwald Date: Thu, 29 Sep 2022 19:43:33 +0000 Subject: [PATCH] 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 --- src/wp-includes/class-wp-theme-json.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/wp-includes/class-wp-theme-json.php b/src/wp-includes/class-wp-theme-json.php index 77b77388af..749ee90c0c 100644 --- a/src/wp-includes/class-wp-theme-json.php +++ b/src/wp-includes/class-wp-theme-json.php @@ -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,