Skip to content

Commit

Permalink
Add Acorn script to composer; clarify Acorn error message
Browse files Browse the repository at this point in the history
  • Loading branch information
MWDelaney committed May 23, 2024
1 parent e3cd9f8 commit 1ba603f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,10 @@
"App\\Providers\\ThemeServiceProvider"
]
}
},
"scripts": {
"post-autoload-dump": [
"Roots\\Acorn\\ComposerScripts::postAutoloadDump"
]
}
}
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <code>composer install</code> in your theme directory to fix this.', 'sage'),
'',
[
'link_url' => 'https://roots.io/acorn/docs/installation/',
Expand Down

0 comments on commit 1ba603f

Please sign in to comment.