Make WordPress Core

Changeset 60217 for trunk


Ignore:
Timestamp:
05/04/2025 07:11:36 PM (13 months ago)
Author:
SergeyBiryukov
Message:

Editor: Correct padding value for styles.elements.spacing in theme.json.

Each of the four directions must be defined separately based on the schema, otherwise the code editor will throw a validation error.

Follow-up to [54162].

Props aslamdoctor, wildworks.
Fixes #63374.

File:
1 edited

Legend:

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

    r58393 r60217  
    374374                },
    375375                "spacing": {
    376                     "padding": "calc(0.667em + 2px) calc(1.333em + 2px)"
     376                    "padding": {
     377                        "top": "calc(0.667em + 2px)",
     378                        "right": "calc(1.333em + 2px)",
     379                        "bottom": "calc(0.667em + 2px)",
     380                        "left": "calc(1.333em + 2px)"
     381                    }
    377382                },
    378383                "typography": {
Note: See TracChangeset for help on using the changeset viewer.