From 0af69815a72d05a41909f524628824afd9625379 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 14:06:49 +0200 Subject: [PATCH 1/4] Allow title prop in styles.variations theme.json schema --- schemas/json/theme.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/schemas/json/theme.json b/schemas/json/theme.json index bdfea7279f67a..79091fd133ee4 100644 --- a/schemas/json/theme.json +++ b/schemas/json/theme.json @@ -2288,6 +2288,10 @@ }, { "properties": { + "title": { + "type": "string", + "description": "Title of the global styles variation." + }, "blockTypes": { "type": "array", "items": { From 5ad228df7e214a238bfa0377f483412024b3e73d 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 14:11:12 +0200 Subject: [PATCH 2/4] Declare title to be i18n --- lib/theme-i18n.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/theme-i18n.json b/lib/theme-i18n.json index e4d14502132cb..fe541e65c676b 100644 --- a/lib/theme-i18n.json +++ b/lib/theme-i18n.json @@ -81,6 +81,15 @@ } } }, + "styles": { + "blocks": { + "variations": { + "*": { + "title": "Style variation name" + } + } + } + }, "customTemplates": [ { "title": "Custom template name" From 5305aef7577c8c3282aa02fab96b7aa18d98006f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Maneiro?= <583546+oandregal@users.noreply.github.com> Date: Fri, 14 Jun 2024 09:30:27 +0200 Subject: [PATCH 3/4] Update name --- schemas/json/theme.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas/json/theme.json b/schemas/json/theme.json index 79091fd133ee4..aafafae360553 100644 --- a/schemas/json/theme.json +++ b/schemas/json/theme.json @@ -2290,7 +2290,7 @@ "properties": { "title": { "type": "string", - "description": "Title of the global styles variation." + "description": "Style variation name." }, "blockTypes": { "type": "array", From aa4ad283b43f8f146a970c0c4b912bc463454246 Mon Sep 17 00:00:00 2001 From: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com> Date: Fri, 14 Jun 2024 17:48:49 +1000 Subject: [PATCH 4/4] Add backport changelog --- backport-changelog/6.6/6825.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 backport-changelog/6.6/6825.md diff --git a/backport-changelog/6.6/6825.md b/backport-changelog/6.6/6825.md new file mode 100644 index 0000000000000..73e5f46600d89 --- /dev/null +++ b/backport-changelog/6.6/6825.md @@ -0,0 +1,3 @@ +https://github.com/WordPress/wordpress-develop/pull/6825 + +* https://github.com/WordPress/gutenberg/pull/62552