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.
Fixes #53702.
Built from https://develop.svn.wordpress.org/trunk@51538


git-svn-id: http://core.svn.wordpress.org/trunk@51149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
jorgefilipecosta 2021-08-03 18:14:58 +00:00
parent cf0f278ebe
commit eff1c81de6
3 changed files with 17 additions and 1 deletions

View File

@ -179,6 +179,9 @@ class WP_Theme_JSON {
* @var array * @var array
*/ */
const ALLOWED_SETTINGS = array( const ALLOWED_SETTINGS = array(
'border' => array(
'customRadius' => null,
),
'color' => array( 'color' => array(
'custom' => null, 'custom' => null,
'customDuotone' => null, 'customDuotone' => null,
@ -211,6 +214,9 @@ class WP_Theme_JSON {
* @var array * @var array
*/ */
const ALLOWED_STYLES = array( const ALLOWED_STYLES = array(
'border' => array(
'radius' => null,
),
'color' => array( 'color' => array(
'background' => null, 'background' => null,
'gradient' => null, 'gradient' => null,

View File

@ -1,6 +1,9 @@
{ {
"version": 1, "version": 1,
"settings": { "settings": {
"border": {
"customRadius": false
},
"color": { "color": {
"custom": true, "custom": true,
"customDuotone": true, "customDuotone": true,
@ -209,6 +212,13 @@
"size": "42px" "size": "42px"
} }
] ]
},
"blocks": {
"core/button": {
"border": {
"customRadius": true
}
}
} }
} }
} }

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.9-alpha-51537'; $wp_version = '5.9-alpha-51538';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.