Skip to content

Commit 07f2807

Browse files
authored
🧑‍💻 Check that the Acorn bootloader exists before booting (#3121)
1 parent 51d60f9 commit 07f2807

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

functions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@
2929
|
3030
*/
3131

32-
try {
33-
\Roots\bootloader()->boot();
34-
} catch (Throwable $e) {
32+
if (! function_exists('\Roots\bootloader')) {
3533
wp_die(
3634
__('You need to install Acorn to use this theme.', 'sage'),
3735
'',
@@ -42,6 +40,8 @@
4240
);
4341
}
4442

43+
\Roots\bootloader()->boot();
44+
4545
/*
4646
|--------------------------------------------------------------------------
4747
| Register Sage Theme Files

0 commit comments

Comments
 (0)