From 76f1aa81dc74b0a2fea89a8d3b6468bc2085ec59 Mon Sep 17 00:00:00 2001 From: Glen Davies Date: Thu, 29 Sep 2022 15:39:54 +1300 Subject: [PATCH 1/2] Add fluid typography theme.json setting --- src/wp-includes/class-wp-theme-json.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/class-wp-theme-json.php b/src/wp-includes/class-wp-theme-json.php index 77b77388af23c..143d2ee4fc89a 100644 --- a/src/wp-includes/class-wp-theme-json.php +++ b/src/wp-includes/class-wp-theme-json.php @@ -334,6 +334,7 @@ class WP_Theme_JSON { 'units' => null, ), 'typography' => array( + 'fluid' => null, 'customFontSize' => null, 'dropCap' => null, 'fontFamilies' => null, From 90465f4f3059cdab135bc4dd86361dead888138f Mon Sep 17 00:00:00 2001 From: Glen Davies Date: Thu, 29 Sep 2022 16:42:26 +1300 Subject: [PATCH 2/2] Remove redundant preset config --- src/wp-includes/class-wp-theme-json.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/wp-includes/class-wp-theme-json.php b/src/wp-includes/class-wp-theme-json.php index 143d2ee4fc89a..749ee90c0cea4 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' ), - ), ); /**