Skip to content

Commit d1cf72e

Browse files
committed
Add a check for the plugins class file before loading composer
1 parent f7d27f9 commit d1cf72e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wp-curate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ function () {
4949

5050
return;
5151
}
52-
} else {
53-
// Load Composer dependencies.
52+
} elseif ( ! class_exists( __NAMESPACE__ . '\Features\REST_API' ) ) {
53+
// Load Composer dependencies if not already loaded.
5454
require_once __DIR__ . '/vendor/wordpress-autoload.php';
5555
}
5656

0 commit comments

Comments
 (0)