diff --git a/src/wp-includes/class-wp-theme-json.php b/src/wp-includes/class-wp-theme-json.php index 0427f67512..5a090daba7 100644 --- a/src/wp-includes/class-wp-theme-json.php +++ b/src/wp-includes/class-wp-theme-json.php @@ -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, diff --git a/src/wp-includes/theme.json b/src/wp-includes/theme.json index 21dae95faf..17389579ea 100644 --- a/src/wp-includes/theme.json +++ b/src/wp-includes/theme.json @@ -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 + } + } } } }