Skip to content

Commit 2e9daef

Browse files
committed
fix overly aggressive security check breaking cli access
1 parent 553864d commit 2e9daef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/load.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use WPEmerge\Support\AliasLoader;
77
use Pimple\Container;
88

9-
if ( ! defined( 'ABSPATH' ) ) {
9+
if ( php_sapi_name() !== 'cli' && ! defined( 'ABSPATH' ) ) {
1010
exit;
1111
}
1212

0 commit comments

Comments
 (0)