From cc2d02d7de8c43131dfb1ca141ff8be1a5f88acf Mon Sep 17 00:00:00 2001 From: Brandon Date: Thu, 14 Jan 2021 23:17:32 -0600 Subject: [PATCH] chore(theme): Move `custom-spacing` up for visibility --- app/setup.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/setup.php b/app/setup.php index d426cca..b2fe000 100755 --- a/app/setup.php +++ b/app/setup.php @@ -91,6 +91,12 @@ add_action('after_setup_theme', function () { */ add_theme_support('custom-units', 'rem', 'vw'); + /** + * Enable support for custom block spacing controls. + * @link https://developer.wordpress.org/block-editor/developers/themes/theme-support/#spacing-control + */ + add_theme_support('custom-spacing'); + /** * Disable custom colors in the editor. * @link https://developer.wordpress.org/block-editor/developers/themes/theme-support/#disabling-custom-colors-in-block-color-palettes @@ -115,12 +121,6 @@ add_action('after_setup_theme', function () { */ remove_theme_support('core-block-patterns'); - /** - * Enable support for custom block spacing controls. - * @link https://developer.wordpress.org/block-editor/developers/themes/theme-support/#spacing-control - */ - add_theme_support('custom-spacing'); - /** * Enable plugins to manage the document title. * @link https://developer.wordpress.org/reference/functions/add_theme_support/#title-tag