🧑💻 Check that the Acorn bootloader exists before booting (#3121)
This commit is contained in:
@@ -29,9 +29,7 @@ require $composer;
|
||||
|
|
||||
*/
|
||||
|
||||
try {
|
||||
\Roots\bootloader()->boot();
|
||||
} catch (Throwable $e) {
|
||||
if (! function_exists('\Roots\bootloader')) {
|
||||
wp_die(
|
||||
__('You need to install Acorn to use this theme.', 'sage'),
|
||||
'',
|
||||
@@ -42,6 +40,8 @@ try {
|
||||
);
|
||||
}
|
||||
|
||||
\Roots\bootloader()->boot();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Register Sage Theme Files
|
||||
|
||||
Reference in New Issue
Block a user