Make WordPress Core


Ignore:
Timestamp:
03/28/2024 08:24:19 AM (3 months ago)
Author:
swissspidy
Message:

Editor: disable shadow.defaultPresets for classic themes.

With this change default shadow presets are never shown for classic themes, and classic themes have no options for adding custom ones.
This essentially reverts [57717] and [57827] / [57828], which had unintended consequences.

Reviewed by audrasjb.
Merges [57885] to the 6.5 branch.

Props ajlende, oandregal, madhudollu, swissspidy, get_dave, andrewserong, desrosj.
Fixes #60815.

Location:
branches/6.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.5

  • branches/6.5/src/wp-includes/class-wp-theme-json.php

    r57751 r57889  
    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`, `dimensions.aspectRatio`, and `shadow.defaultPresets`.
     661     * @since 6.5.0 Added `background.backgroundSize` and `dimensions.aspectRatio`.
    662662     * @var array
    663663     */
     
    680680        array( 'spacing', 'padding' ),
    681681        array( 'typography', 'lineHeight' ),
    682         array( 'shadow', 'defaultPresets' ),
    683682    );
    684683
Note: See TracChangeset for help on using the changeset viewer.