diff --git a/src/wp-admin/edit-form-blocks.php b/src/wp-admin/edit-form-blocks.php index 03f80700ba797..97e9fbc548cf3 100644 --- a/src/wp-admin/edit-form-blocks.php +++ b/src/wp-admin/edit-form-blocks.php @@ -147,6 +147,7 @@ $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 @@ -326,6 +327,7 @@ '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 );