Skip to content

Commit b586807

Browse files
authored
Merge pull request #191 from kidunot89/fix/autoloader-fix
fix: autoloader fix applied
2 parents 7c4aba1 + 22f455e commit b586807

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

wp-graphql-jwt-authentication.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,10 @@ private function setup_constants() {
148148
private function includes() {
149149
// Autoload Required Classes.
150150
if ( defined( 'WPGRAPHQL_JWT_AUTHENTICATION_AUTOLOAD' ) && true === WPGRAPHQL_JWT_AUTHENTICATION_AUTOLOAD ) {
151-
require_once( WPGRAPHQL_JWT_AUTHENTICATION_PLUGIN_DIR . 'vendor/autoload.php' );
151+
if ( file_exists( WPGRAPHQL_JWT_AUTHENTICATION_PLUGIN_DIR . 'vendor/autoload.php' ) ) {
152+
// Autoload Required Classes.
153+
require_once WPGRAPHQL_JWT_AUTHENTICATION_PLUGIN_DIR . 'vendor/autoload.php';
154+
}
152155
}
153156
}
154157

0 commit comments

Comments
 (0)