From 4b87f197f415a800a3cf2b988ecf00562762f65f Mon Sep 17 00:00:00 2001 From: isabel_brison Date: Thu, 7 Sep 2023 01:05:19 +0000 Subject: [PATCH] Editor: allow disabling layout controls. Adds the ability to disable layout controls on a per-block level from theme.json. Props mukesh27. Fixes #59294. Built from https://develop.svn.wordpress.org/trunk@56534 git-svn-id: http://core.svn.wordpress.org/trunk@56046 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-theme-json.php | 6 ++++-- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-theme-json.php b/wp-includes/class-wp-theme-json.php index d4a4fda6a6..e482799f4f 100644 --- a/wp-includes/class-wp-theme-json.php +++ b/wp-includes/class-wp-theme-json.php @@ -340,6 +340,7 @@ class WP_Theme_JSON { * @since 6.2.0 Added `dimensions.minHeight`, 'shadow.presets', 'shadow.defaultPresets', * `position.fixed` and `position.sticky`. * @since 6.3.0 Added support for `typography.textColumns`, removed `layout.definitions`. + * @since 6.4.0 Added `layout.allowEditing`. * * @var array */ @@ -374,8 +375,9 @@ class WP_Theme_JSON { 'minHeight' => null, ), 'layout' => array( - 'contentSize' => null, - 'wideSize' => null, + 'contentSize' => null, + 'wideSize' => null, + 'allowEditing' => null, ), 'position' => array( 'fixed' => null, diff --git a/wp-includes/version.php b/wp-includes/version.php index 6d8d506a02..56ef5085ed 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.4-alpha-56533'; +$wp_version = '6.4-alpha-56534'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.