Make WordPress Core

Changeset 57247


Ignore:
Timestamp:
01/08/2024 06:21:02 AM (11 months ago)
Author:
isabel_brison
Message:

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.

File:
1 edited

Legend:

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

    r57135 r57247  
    345345     * @since 6.4.0 Added support for `layout.allowEditing`, `background.backgroundImage`,
    346346     *              `typography.writingMode`, `lightbox.enabled` and `lightbox.allowEditing`.
     347     * @since 6.5.0 Added support for `layout.allowCustomContentAndWideSize`.
    347348     * @var array
    348349     */
     
    381382        ),
    382383        'layout'                        => array(
    383             'contentSize'  => null,
    384             'wideSize'     => null,
    385             'allowEditing' => null,
     384            'contentSize'                   => null,
     385            'wideSize'                      => null,
     386            'allowEditing'                  => null,
     387            'allowCustomContentAndWideSize' => null,
    386388        ),
    387389        'lightbox'                      => array(
Note: See TracChangeset for help on using the changeset viewer.