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/tests/phpunit/data/themedir1/block-theme/theme.json

    r57662 r57889  
    4949            "padding": true,
    5050            "blockGap": true
     51        },
     52        "shadow": {
     53            "presets": [
     54                {
     55                    "name": "Natural",
     56                    "slug": "natural",
     57                    "shadow": "2px 2px 3px #000"
     58                },
     59                {
     60                    "name": "Test",
     61                    "slug": "test",
     62                    "shadow": "2px 2px 3px #000"
     63                }
     64            ]
    5165        },
    5266        "blocks": {
Note: See TracChangeset for help on using the changeset viewer.