Make WordPress Core


Ignore:
Timestamp:
11/08/2021 07:18:39 PM (2 years ago)
Author:
jorgefilipecosta
Message:

Update theme.json classes for WordPress 5.9.

This commit ports to core the changes to the classes that deal with theme.json code.

See #54336.
Props oandregal, spacedmonkey, noisysocks, hellofromtonya, youknowriad.

File:
1 edited

Legend:

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

    r51538 r52049  
    11{
    2     "version": 1,
     2    "version": 2,
    33    "settings": {
    44        "border": {
    5             "customRadius": false
     5            "color": false,
     6            "radius": false,
     7            "style": false,
     8            "width": false
    69        },
    710        "color": {
     
    1013            "customGradient": true,
    1114            "link": false,
     15            "background": true,
     16            "text": true,
    1217            "duotone": [
    1318                {
     
    178183        },
    179184        "spacing": {
    180             "customMargin": false,
    181             "customPadding": false,
     185            "blockGap": null,
     186            "margin": false,
     187            "padding": false,
    182188            "units": [ "px", "em", "rem", "vh", "vw", "%" ]
    183189        },
    184190        "typography": {
    185191            "customFontSize": true,
    186             "customLineHeight": false,
    187192            "dropCap": true,
     193            "fontStyle": true,
     194            "fontWeight": true,
     195            "letterSpacing": true,
     196            "lineHeight": false,
     197            "textDecoration": true,
     198            "textTransform": true,
    188199            "fontSizes": [
    189200                {
     
    217228            "core/button": {
    218229                "border": {
    219                     "customRadius": true
     230                    "radius": true
     231                }
     232            },
     233            "core/pullquote": {
     234                "border": {
     235                    "color": true,
     236                    "radius": true,
     237                    "style": true,
     238                    "width": true
    220239                }
    221240            }
    222241        }
     242    },
     243    "styles": {
     244        "spacing": { "blockGap": "24px" }
    223245    }
    224246}
Note: See TracChangeset for help on using the changeset viewer.