From acf477a0c0b34d250a06be0cc1f64db246dfe3b1 Mon Sep 17 00:00:00 2001 From: abuyoyo Date: Wed, 7 Jun 2023 11:56:27 +0300 Subject: [PATCH] vendor/autoload - check if file exists --- notice-manager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/notice-manager.php b/notice-manager.php index 4171bc7..4291392 100644 --- a/notice-manager.php +++ b/notice-manager.php @@ -12,7 +12,8 @@ defined( 'ABSPATH' ) || die( 'No soup for you!' ); use WPHelper\PluginCore; -require_once 'vendor/autoload.php'; +if ( file_exists( 'vendor/autoload.php' ) ) + require_once 'vendor/autoload.php'; /** * Bootstrap plugin and admin page (Tools > Notice Manager)