Make WordPress Core

Changeset 57717


Ignore:
Timestamp:
02/27/2024 10:20:11 AM (10 months ago)
Author:
swissspidy
Message:

Editor: add shadow.defaultPresets to appearance tools opt-ins.

Props madhudollu.
Fixes #60633.

Location:
trunk
Files:
2 edited

Legend:

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

    r57716 r57717  
    659659     * @since 6.2.0 Added `dimensions.minHeight` and `position.sticky`.
    660660     * @since 6.4.0 Added `background.backgroundImage`.
    661      * @since 6.5.0 Added `background.backgroundSize` and `dimensions.aspectRatio`.
     661     * @since 6.5.0 Added `background.backgroundSize`, `dimensions.aspectRatio`, and `shadow.defaultPresets`.
    662662     * @var array
    663663     */
     
    680680        array( 'spacing', 'padding' ),
    681681        array( 'typography', 'lineHeight' ),
     682        array( 'shadow', 'defaultPresets' ),
    682683    );
    683684
  • trunk/tests/phpunit/tests/theme/wpThemeJson.php

    r57716 r57717  
    294294                'lineHeight' => true,
    295295            ),
     296            'shadow'     => array(
     297                'defaultPresets' => true,
     298            ),
    296299            'blocks'     => array(
    297300                'core/paragraph' => array(
     
    331334                    'typography' => array(
    332335                        'lineHeight' => false,
     336                    ),
     337                    'shadow'     => array(
     338                        'defaultPresets' => true,
    333339                    ),
    334340                ),
Note: See TracChangeset for help on using the changeset viewer.