From 1ba603f62b76652027ed4f2de58c346acb75bf46 Mon Sep 17 00:00:00 2001 From: MWDelaney Date: Thu, 23 May 2024 08:37:26 -0400 Subject: [PATCH] Add Acorn script to composer; clarify Acorn error message --- composer.json | 5 +++++ functions.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3a7e38f42e..19bd982d74 100644 --- a/composer.json +++ b/composer.json @@ -61,5 +61,10 @@ "App\\Providers\\ThemeServiceProvider" ] } + }, + "scripts": { + "post-autoload-dump": [ + "Roots\\Acorn\\ComposerScripts::postAutoloadDump" + ] } } diff --git a/functions.php b/functions.php index 9b1b0c0947..104579c287 100644 --- a/functions.php +++ b/functions.php @@ -31,7 +31,7 @@ if (! function_exists('\Roots\bootloader')) { wp_die( - __('You need to install Acorn to use this theme.', 'sage'), + __('You need to install Acorn to use this theme. Run composer install in your theme directory to fix this.', 'sage'), '', [ 'link_url' => 'https://roots.io/acorn/docs/installation/',