diff --git a/functions.php b/functions.php index 05c6413..9b1b0c0 100644 --- a/functions.php +++ b/functions.php @@ -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