Skip to content

Commit

Permalink
Change ABSPATH to WP_CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
dac514 committed Jun 17, 2017
1 parent b9a0847 commit dd34108
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions bin/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
deny from all
5 changes: 3 additions & 2 deletions bin/cache.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php

if ( ! defined( 'ABSPATH' ) ) {
die( "Run this script with WP-CLI: `wp eval-file bin/cache.php` \n" );
if ( ! defined( 'WP_CLI' ) ) {
$script_name = basename( $argv[0] );
die( "Run this script with WP-CLI: `wp eval-file bin/$script_name` \n" );
}

set_time_limit( 0 );
Expand Down

0 comments on commit dd34108

Please sign in to comment.