From 07f28076caa9270eb82132077c10a73f21eb0cf5 Mon Sep 17 00:00:00 2001 From: Brandon Date: Fri, 3 Feb 2023 16:52:36 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB=20Check=20tha?= =?UTF-8?q?t=20the=20Acorn=20bootloader=20exists=20before=20booting=20(#31?= =?UTF-8?q?21)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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