From c0cca639858f0db2ea7d1784beca62c693ad6d4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Maneiro?= <583546+oandregal@users.noreply.github.com> Date: Thu, 13 Jun 2024 16:36:43 +0200 Subject: [PATCH] Enable new slug key in schemas --- lib/class-wp-theme-json-gutenberg.php | 1 + schemas/json/theme.json | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lib/class-wp-theme-json-gutenberg.php b/lib/class-wp-theme-json-gutenberg.php index b00767dbf9abd..3008f9a82a25a 100644 --- a/lib/class-wp-theme-json-gutenberg.php +++ b/lib/class-wp-theme-json-gutenberg.php @@ -357,6 +357,7 @@ class WP_Theme_JSON_Gutenberg { 'styles', 'templateParts', 'title', + 'slug', 'version', ); diff --git a/schemas/json/theme.json b/schemas/json/theme.json index bdfea7279f67a..77808d8783ea4 100644 --- a/schemas/json/theme.json +++ b/schemas/json/theme.json @@ -2696,6 +2696,10 @@ "type": "string", "description": "Title of the global styles variation. If not defined, the file name will be used." }, + "slug": { + "type": "string", + "description": "Slug of the global styles variation. If not defined, the kebab-case title will be used." + }, "description": { "type": "string", "description": "Description of the global styles variation."