Skip to content

Commit

Permalink
Editor: allow disabling layout controls.
Browse files Browse the repository at this point in the history
Adds the ability to disable layout controls on a per-block level from theme.json.

Props mukesh27.
Fixes #59294.


git-svn-id: https://develop.svn.wordpress.org/trunk@56534 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
tellthemachines committed Sep 7, 2023
1 parent 503addd commit 9f5dd61
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/wp-includes/class-wp-theme-json.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 9f5dd61

Please sign in to comment.