From 0d54edf66f253df85535ddc10de9eb24382a427b Mon Sep 17 00:00:00 2001 From: Brandon Nifong Date: Fri, 1 Jul 2022 20:20:06 -0500 Subject: [PATCH] chore(lint): run pint --- app/setup.php | 8 ++++++++ functions.php | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/setup.php b/app/setup.php index 9dcdba4ae6..fe33dc4941 100644 --- a/app/setup.php +++ b/app/setup.php @@ -34,6 +34,7 @@ add_action('after_setup_theme', function () { /** * Enable features from the Soil plugin if activated. + * * @link https://roots.io/plugins/soil/ */ add_theme_support('soil', [ @@ -52,6 +53,7 @@ /** * Register the navigation menus. + * * @link https://developer.wordpress.org/reference/functions/register_nav_menus/ */ register_nav_menus([ @@ -60,30 +62,35 @@ /** * Disable the default block patterns. + * * @link https://developer.wordpress.org/block-editor/developers/themes/theme-support/#disabling-the-default-block-patterns */ remove_theme_support('core-block-patterns'); /** * Enable plugins to manage the document title. + * * @link https://developer.wordpress.org/reference/functions/add_theme_support/#title-tag */ add_theme_support('title-tag'); /** * Enable post thumbnail support. + * * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/ */ add_theme_support('post-thumbnails'); /** * Enable responsive embed support. + * * @link https://wordpress.org/gutenberg/handbook/designers-developers/developers/themes/theme-support/#responsive-embedded-content */ add_theme_support('responsive-embeds'); /** * Enable HTML5 markup support. + * * @link https://developer.wordpress.org/reference/functions/add_theme_support/#html5 */ add_theme_support('html5', [ @@ -98,6 +105,7 @@ /** * Enable selective refresh for widgets in customizer. + * * @link https://developer.wordpress.org/themes/advanced-topics/customizer-api/#theme-support-in-sidebars */ add_theme_support('customize-selective-refresh-widgets'); diff --git a/functions.php b/functions.php index a0679edb00..72b371b161 100644 --- a/functions.php +++ b/functions.php @@ -11,7 +11,7 @@ | */ -if (! file_exists($composer = __DIR__ . '/vendor/autoload.php')) { +if (! file_exists($composer = __DIR__.'/vendor/autoload.php')) { wp_die(__('Error locating autoloader. Please run composer install.', 'sage')); }