From 348253a24422aeafb8553724443ad283bd097e95 Mon Sep 17 00:00:00 2001 From: Michal Czaplinski Date: Tue, 19 Sep 2023 13:32:49 +0100 Subject: [PATCH 1/2] Add the lightbox setting to theme.json --- src/wp-includes/class-wp-theme-json.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-theme-json.php b/src/wp-includes/class-wp-theme-json.php index 108f386b84d01..0bd8ea8b46d85 100644 --- a/src/wp-includes/class-wp-theme-json.php +++ b/src/wp-includes/class-wp-theme-json.php @@ -343,7 +343,7 @@ class WP_Theme_JSON { * `position.fixed` and `position.sticky`. * @since 6.3.0 Added support for `typography.textColumns`, removed `layout.definitions`. * @since 6.4.0 Added support for `layout.allowEditing`, `background.backgroundImage`, - * and `typography.writingMode`. + * `typography.writingMode`, `lightbox.enabled` and `lightbox.allowEditing`. * @var array */ const VALID_SETTINGS = array( @@ -384,6 +384,10 @@ class WP_Theme_JSON { 'wideSize' => null, 'allowEditing' => null, ), + 'lightbox' => array( + 'enabled' => null, + 'allowEditing' => null, + ), 'position' => array( 'fixed' => null, 'sticky' => null, From 7e6ee0042bb77399e10b8c9ca670d73f0864f102 Mon Sep 17 00:00:00 2001 From: tellthemachines Date: Thu, 21 Sep 2023 15:45:11 +1000 Subject: [PATCH 2/2] Add theme.json change --- src/wp-includes/theme.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wp-includes/theme.json b/src/wp-includes/theme.json index e209d947d105b..f2690bd44dfeb 100644 --- a/src/wp-includes/theme.json +++ b/src/wp-includes/theme.json @@ -272,6 +272,11 @@ "radius": true } }, + "core/image": { + "lightbox": { + "allowEditing": true + } + }, "core/pullquote": { "border": { "color": true,