Editor: add setting to disable layout content and wide size controls.
Adds support for an `allowCustomContentAndWideSize` setting in `WP_Theme_JSON` valid settings. Props andrewserong. Fixes #60133. Built from https://develop.svn.wordpress.org/trunk@57247 git-svn-id: http://core.svn.wordpress.org/trunk@56753 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2b005a61ef
commit
d966a9f046
|
@ -344,6 +344,7 @@ class WP_Theme_JSON {
|
|||
* @since 6.3.0 Added support for `typography.textColumns`, removed `layout.definitions`.
|
||||
* @since 6.4.0 Added support for `layout.allowEditing`, `background.backgroundImage`,
|
||||
* `typography.writingMode`, `lightbox.enabled` and `lightbox.allowEditing`.
|
||||
* @since 6.5.0 Added support for `layout.allowCustomContentAndWideSize`.
|
||||
* @var array
|
||||
*/
|
||||
const VALID_SETTINGS = array(
|
||||
|
@ -380,9 +381,10 @@ class WP_Theme_JSON {
|
|||
'minHeight' => null,
|
||||
),
|
||||
'layout' => array(
|
||||
'contentSize' => null,
|
||||
'wideSize' => null,
|
||||
'allowEditing' => null,
|
||||
'contentSize' => null,
|
||||
'wideSize' => null,
|
||||
'allowEditing' => null,
|
||||
'allowCustomContentAndWideSize' => null,
|
||||
),
|
||||
'lightbox' => array(
|
||||
'enabled' => null,
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.5-alpha-57246';
|
||||
$wp_version = '6.5-alpha-57247';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue