From 4825dccd26764fcaebca19fba3ff57752ebff620 Mon Sep 17 00:00:00 2001 From: noisysocks Date: Fri, 29 Jan 2021 05:04:59 +0000 Subject: [PATCH] Block Editor: Add enableCustomSpacing Adds the `enableCustomSpacing` editor setting. This enables the custom block spacing feature from Gutenberg. Props nosolosw, gziolo. Fixes #51760. Built from https://develop.svn.wordpress.org/trunk@50070 git-svn-id: http://core.svn.wordpress.org/trunk@49771 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-form-blocks.php | 2 ++ wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-admin/edit-form-blocks.php b/wp-admin/edit-form-blocks.php index b31ff7eb3b..2c46e4d504 100644 --- a/wp-admin/edit-form-blocks.php +++ b/wp-admin/edit-form-blocks.php @@ -147,6 +147,7 @@ $font_sizes = current( (array) get_theme_support( 'editor-font-sizes' ) $gradient_presets = current( (array) get_theme_support( 'editor-gradient-presets' ) ); $custom_line_height = get_theme_support( 'custom-line-height' ); $custom_units = get_theme_support( 'custom-units' ); +$custom_spacing = get_theme_support( 'custom-spacing' ); /** * Filters the allowed block types for the editor, defaulting to true (all @@ -340,6 +341,7 @@ $editor_settings = array( 'enableCustomFields' => (bool) get_user_meta( get_current_user_id(), 'enable_custom_fields', true ), 'enableCustomLineHeight' => $custom_line_height, 'enableCustomUnits' => $custom_units, + 'enableCustomSpacing' => $custom_spacing, ); $autosave = wp_get_post_autosave( $post_ID ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 424b042a03..3339c4b177 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.7-alpha-50069'; +$wp_version = '5.7-alpha-50070'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.