Make WordPress Core


Ignore:
Timestamp:
09/21/2023 06:33:48 AM (3 years ago)
Author:
isabel_brison
Message:

Editor: add lightbox setting.

Adds lightbox as a valid setting to WP_Theme_JSON class and as an image block setting in theme.json.

Props czapla, costdev, desrosj.
Fixes #59393.

File:
1 edited

Legend:

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

    r56615 r56643  
    344344         * @since 6.3.0 Added support for `typography.textColumns`, removed `layout.definitions`.
    345345         * @since 6.4.0 Added support for `layout.allowEditing`, `background.backgroundImage`,
    346          *              and `typography.writingMode`.
     346         *              `typography.writingMode`, `lightbox.enabled` and `lightbox.allowEditing`.
    347347         * @var array
    348348         */
    … …  
    383383                        'contentSize'  => null,
    384384                        'wideSize'     => null,
     385                        'allowEditing' => null,
     386                ),
     387                'lightbox'                      => array(
     388                        'enabled'      => null,
    385389                        'allowEditing' => null,
    386390                ),
Note: See TracChangeset for help on using the changeset viewer.