We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9a0847 commit dd34108Copy full SHA for dd34108
bin/.htaccess
@@ -0,0 +1 @@
1
+deny from all
bin/cache.php
@@ -1,7 +1,8 @@
<?php
2
3
-if ( ! defined( 'ABSPATH' ) ) {
4
- die( "Run this script with WP-CLI: `wp eval-file bin/cache.php` \n" );
+if ( ! defined( 'WP_CLI' ) ) {
+ $script_name = basename( $argv[0] );
5
+ die( "Run this script with WP-CLI: `wp eval-file bin/$script_name` \n" );
6
}
7
8
set_time_limit( 0 );
0 commit comments