summaryrefslogtreecommitdiffstats
path: root/wp-includes/block-editor.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:51:18 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:51:18 +0000
commit0e41b5d52fdc6af6442816b5f465c9db9f84e126 (patch)
treee139a90049b158d4eed892d1662ee7f5c358fa31 /wp-includes/block-editor.php
parentAdding upstream version 6.5.5+dfsg1. (diff)
downloadwordpress-upstream.tar.xz
wordpress-upstream.zip
Adding upstream version 6.6.1+dfsg1.upstream/6.6.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-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;
}