From bb9200b39e4a61cd399d5178064baf06757dde96 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 4 May 2025 19:13:31 +0000 Subject: [PATCH] Editor: Correct padding value for `styles.elements.spacing` in `theme.json`. Each of the four directions must be defined separately based on the schema, otherwise the code editor will throw a validation error. Follow-up to [54162]. Props aslamdoctor, wildworks. Fixes #63374. Built from https://develop.svn.wordpress.org/trunk@60217 git-svn-id: http://core.svn.wordpress.org/trunk@59553 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.json | 7 ++++++- wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/wp-includes/theme.json b/wp-includes/theme.json index 32873854e4..641c379557 100644 --- a/wp-includes/theme.json +++ b/wp-includes/theme.json @@ -373,7 +373,12 @@ "background": "#32373c" }, "spacing": { - "padding": "calc(0.667em + 2px) calc(1.333em + 2px)" + "padding": { + "top": "calc(0.667em + 2px)", + "right": "calc(1.333em + 2px)", + "bottom": "calc(0.667em + 2px)", + "left": "calc(1.333em + 2px)" + } }, "typography": { "fontSize": "inherit", diff --git a/wp-includes/version.php b/wp-includes/version.php index a77ab196be..048cfeb1a6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.9-alpha-60216'; +$wp_version = '6.9-alpha-60217'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.