🧑💻 Check that the Acorn bootloader exists before booting (#3121)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user