Make WordPress Core

Changeset 56643


Ignore:
Timestamp:
09/21/2023 06:33:48 AM (12 months 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.

Location:
trunk/src/wp-includes
Files:
2 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        ),
  • trunk/src/wp-includes/theme.json

    r56605 r56643  
    273273                }
    274274            },
     275            "core/image": {
     276                "lightbox": {
     277                    "allowEditing": true
     278                }
     279            },
    275280            "core/pullquote": {
    276281                "border": {
Note: See TracChangeset for help on using the changeset viewer.