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.

git-svn-id: https://develop.svn.wordpress.org/trunk@52049 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jorge Costa
2021-11-08 19:18:39 +00:00
parent 31e9247872
commit 60725c46ca
19 changed files with 2532 additions and 409 deletions

View File

@@ -1,14 +1,19 @@
{
"version": 1,
"version": 2,
"settings": {
"border": {
"customRadius": false
"color": false,
"radius": false,
"style": false,
"width": false
},
"color": {
"custom": true,
"customDuotone": true,
"customGradient": true,
"link": false,
"background": true,
"text": true,
"duotone": [
{
"name": "Dark grayscale" ,
@@ -177,14 +182,20 @@
]
},
"spacing": {
"customMargin": false,
"customPadding": false,
"blockGap": null,
"margin": false,
"padding": false,
"units": [ "px", "em", "rem", "vh", "vw", "%" ]
},
"typography": {
"customFontSize": true,
"customLineHeight": false,
"dropCap": true,
"fontStyle": true,
"fontWeight": true,
"letterSpacing": true,
"lineHeight": false,
"textDecoration": true,
"textTransform": true,
"fontSizes": [
{
"name": "Small",
@@ -216,9 +227,20 @@
"blocks": {
"core/button": {
"border": {
"customRadius": true
"radius": true
}
},
"core/pullquote": {
"border": {
"color": true,
"radius": true,
"style": true,
"width": true
}
}
}
},
"styles": {
"spacing": { "blockGap": "24px" }
}
}