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.3.0 Added support for `typography.textColumns`, removed `layout.definitions`.
|
||||||
* @since 6.4.0 Added support for `layout.allowEditing`, `background.backgroundImage`,
|
* @since 6.4.0 Added support for `layout.allowEditing`, `background.backgroundImage`,
|
||||||
* `typography.writingMode`, `lightbox.enabled` and `lightbox.allowEditing`.
|
* `typography.writingMode`, `lightbox.enabled` and `lightbox.allowEditing`.
|
||||||
|
* @since 6.5.0 Added support for `layout.allowCustomContentAndWideSize`.
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
const VALID_SETTINGS = array(
|
const VALID_SETTINGS = array(
|
||||||
|
@ -383,6 +384,7 @@ class WP_Theme_JSON {
|
||||||
'contentSize' => null,
|
'contentSize' => null,
|
||||||
'wideSize' => null,
|
'wideSize' => null,
|
||||||
'allowEditing' => null,
|
'allowEditing' => null,
|
||||||
|
'allowCustomContentAndWideSize' => null,
|
||||||
),
|
),
|
||||||
'lightbox' => array(
|
'lightbox' => array(
|
||||||
'enabled' => null,
|
'enabled' => null,
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue