Remove Acorn as dependency; treat as requirement (#2827)

This commit is contained in:
Ben
2022-02-10 15:04:35 -08:00
committed by GitHub
parent 0bd1f42982
commit cd1e3af50f
3 changed files with 21 additions and 3 deletions

View File

@@ -29,7 +29,13 @@ require $composer;
|
*/
\Roots\bootloader();
try {
\Roots\bootloader();
} catch (Throwable $e) {
wp_die(
__('You need to install Acorn to use this theme.', 'sage')
);
}
/*
|--------------------------------------------------------------------------