diff --git a/functions.php b/functions.php index 6d43a4c068..c5d787f136 100644 --- a/functions.php +++ b/functions.php @@ -49,6 +49,8 @@ unset($file, $filepath); /** - * Require composer autoloader + * Require Composer autoloader if installed on it's own */ -require_once __DIR__ . '/vendor/autoload.php'; +if (file_exists($composer = __DIR__ . '/vendor/autoload.php')) { + require_once $composer; +}