🧑‍💻 Check that the Acorn bootloader exists before booting (#3121)

This commit is contained in:
Brandon
2023-02-03 16:52:36 -06:00
committed by GitHub
parent 51d60f9c43
commit 07f28076ca

View File

@@ -29,9 +29,7 @@ require $composer;
| |
*/ */
try { if (! function_exists('\Roots\bootloader')) {
\Roots\bootloader()->boot();
} catch (Throwable $e) {
wp_die( wp_die(
__('You need to install Acorn to use this theme.', 'sage'), __('You need to install Acorn to use this theme.', 'sage'),
'', '',
@@ -42,6 +40,8 @@ try {
); );
} }
\Roots\bootloader()->boot();
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Register Sage Theme Files | Register Sage Theme Files