summaryrefslogtreecommitdiffstats
path: root/wp-includes/block-editor.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/block-editor.php')
-rw-r--r--wp-includes/block-editor.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/wp-includes/block-editor.php b/wp-includes/block-editor.php
index e04b012..fdc4846 100644
--- a/wp-includes/block-editor.php
+++ b/wp-includes/block-editor.php
@@ -814,6 +814,7 @@ function get_block_editor_theme_styles() {
* Returns the classic theme supports settings for block editor.
*
* @since 6.2.0
+ * @since 6.6.0 Add support for 'editor-spacing-sizes' theme support.
*
* @return array The classic theme supports settings.
*/
@@ -844,5 +845,10 @@ function get_classic_theme_supports_block_editor_settings() {
$theme_settings['gradients'] = $gradient_presets;
}
+ $spacing_sizes = current( (array) get_theme_support( 'editor-spacing-sizes' ) );
+ if ( false !== $spacing_sizes ) {
+ $theme_settings['spacingSizes'] = $spacing_sizes;
+ }
+
return $theme_settings;
}