Editor: add lightbox setting.
Adds lightbox as a valid setting to `WP_Theme_JSON` class and as an image block setting in theme.json. Props czapla, costdev, desrosj. Fixes #59393. Built from https://develop.svn.wordpress.org/trunk@56643 git-svn-id: http://core.svn.wordpress.org/trunk@56155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9ba50bb623
commit
2f5d2da8f8
|
@ -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,
|
||||
|
|
|
@ -272,6 +272,11 @@
|
|||
"radius": true
|
||||
}
|
||||
},
|
||||
"core/image": {
|
||||
"lightbox": {
|
||||
"allowEditing": true
|
||||
}
|
||||
},
|
||||
"core/pullquote": {
|
||||
"border": {
|
||||
"color": true,
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.4-alpha-56642';
|
||||
$wp_version = '6.4-alpha-56643';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue