Skip to content

Commit

Permalink
fix overly aggressive security check breaking cli access
Browse files Browse the repository at this point in the history
  • Loading branch information
atanas-dev committed Sep 12, 2018
1 parent 553864d commit 2e9daef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use WPEmerge\Support\AliasLoader;
use Pimple\Container;

if ( ! defined( 'ABSPATH' ) ) {
if ( php_sapi_name() !== 'cli' && ! defined( 'ABSPATH' ) ) {
exit;
}

Expand Down

0 comments on commit 2e9daef

Please sign in to comment.