Make WordPress Core


Ignore:
Timestamp:
03/28/2024 08:24:19 AM (5 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/tests/phpunit/tests/theme/wpThemeJson.php

    r57717 r57889  
    294294                'lineHeight' => true,
    295295            ),
    296             'shadow'     => array(
    297                 'defaultPresets' => true,
    298             ),
    299296            'blocks'     => array(
    300297                'core/paragraph' => array(
     
    334331                    'typography' => array(
    335332                        'lineHeight' => false,
    336                     ),
    337                     'shadow'     => array(
    338                         'defaultPresets' => true,
    339333                    ),
    340334                ),
Note: See TracChangeset for help on using the changeset viewer.