From 0296dc6d98644ca46e222a5dcae8d9e6d3149875 Mon Sep 17 00:00:00 2001 From: davidbaumwald Date: Thu, 29 Sep 2022 19:45:09 +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. Built from https://develop.svn.wordpress.org/trunk@54360 git-svn-id: http://core.svn.wordpress.org/trunk@53919 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-theme-json.php | 10 +--------- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/wp-includes/class-wp-theme-json.php b/wp-includes/class-wp-theme-json.php index 77b77388af..749ee90c0c 100644 --- a/wp-includes/class-wp-theme-json.php +++ b/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, diff --git a/wp-includes/version.php b/wp-includes/version.php index e09cc18c16..95d8328a19 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.