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, 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,