Make WordPress Core

Changeset 56534


Ignore:
Timestamp:
09/07/2023 01:03:09 AM (6 months ago)
Author:
isabel_brison
Message:

Editor: allow disabling layout controls.

Adds the ability to disable layout controls on a per-block level from theme.json.

Props mukesh27.
Fixes #59294.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-theme-json.php

    r56502 r56534  
    341341     *              `position.fixed` and `position.sticky`.
    342342     * @since 6.3.0 Added support for `typography.textColumns`, removed `layout.definitions`.
     343     * @since 6.4.0 Added `layout.allowEditing`.
    343344     *
    344345     * @var array
     
    375376        ),
    376377        'layout'                        => array(
    377             'contentSize' => null,
    378             'wideSize'    => null,
     378            'contentSize'  => null,
     379            'wideSize'     => null,
     380            'allowEditing' => null,
    379381        ),
    380382        'position'                      => array(
Note: See TracChangeset for help on using the changeset viewer.