From 0f13626dab0f3fe2ce79688221bb79ae35af520d Mon Sep 17 00:00:00 2001 From: abuyoyo Date: Fri, 11 Aug 2023 22:21:36 +0300 Subject: [PATCH] Fix vendor/autoload.php include path --- notice-manager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notice-manager.php b/notice-manager.php index 4d185f6..d26b614 100644 --- a/notice-manager.php +++ b/notice-manager.php @@ -12,8 +12,8 @@ defined( 'ABSPATH' ) || die( 'No soup for you!' ); use WPHelper\PluginCore; -if ( file_exists( 'vendor/autoload.php' ) ) - require_once 'vendor/autoload.php'; +if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) + require_once __DIR__ . '/vendor/autoload.php'; /** * Bootstrap plugin and admin page (Tools > Notice Manager)