Skip to content

Commit 8a736ac

Browse files
Merge pull request #53 from wp-cli/prefix-global-variables
Prefix variables in global namespace
2 parents 8a0d4ca + 16859c8 commit 8a736ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cache-command.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
return;
55
}
66

7-
$autoload = dirname( __FILE__ ) . '/vendor/autoload.php';
8-
if ( file_exists( $autoload ) ) {
9-
require_once $autoload;
7+
$wp_cli_cache_autoloader = dirname( __FILE__ ) . '/vendor/autoload.php';
8+
if ( file_exists( $wp_cli_cache_autoloader ) ) {
9+
require_once $wp_cli_cache_autoloader;
1010
}
1111

1212
WP_CLI::add_command( 'cache', 'Cache_Command' );

0 commit comments

Comments
 (0)