mirror of
git://develop.git.wordpress.org/
synced 2025-04-19 11:42:26 +02:00
Block Editor: Add missing border setting on button block.
This commit fixes a regression on WordPress 5.8 that made the border radius setting on the buttons block disappear. Props Mamaduka, daisyo, priethor, desrosj, mikeschroder. Merges [51538] to the 5.8 branch. Fixes #53697. git-svn-id: https://develop.svn.wordpress.org/branches/5.8@51547 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
edde5d5538
commit
38747c03e7
@ -179,6 +179,9 @@ class WP_Theme_JSON {
|
||||
* @var array
|
||||
*/
|
||||
const ALLOWED_SETTINGS = array(
|
||||
'border' => array(
|
||||
'customRadius' => null,
|
||||
),
|
||||
'color' => array(
|
||||
'custom' => null,
|
||||
'customDuotone' => null,
|
||||
@ -211,6 +214,9 @@ class WP_Theme_JSON {
|
||||
* @var array
|
||||
*/
|
||||
const ALLOWED_STYLES = array(
|
||||
'border' => array(
|
||||
'radius' => null,
|
||||
),
|
||||
'color' => array(
|
||||
'background' => null,
|
||||
'gradient' => null,
|
||||
|
@ -1,6 +1,9 @@
|
||||
{
|
||||
"version": 1,
|
||||
"settings": {
|
||||
"border": {
|
||||
"customRadius": false
|
||||
},
|
||||
"color": {
|
||||
"custom": true,
|
||||
"customDuotone": true,
|
||||
@ -209,6 +212,13 @@
|
||||
"size": "42px"
|
||||
}
|
||||
]
|
||||
},
|
||||
"blocks": {
|
||||
"core/button": {
|
||||
"border": {
|
||||
"customRadius": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user