mirror of
https://ghproxy.net/https://github.com/wp-cli/wp-cli-bundle.git
synced 2025-10-04 00:18:16 +08:00
Fix phar path resolution
This commit is contained in:
parent
806b93e49b
commit
11cc23fbbb
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ if ( 'cli' !== PHP_SAPI ) {
|
|||
}
|
||||
|
||||
// Store the path to the Phar early on for `Utils\phar-safe-path()` function.
|
||||
define( 'WP_CLI_PHAR_PATH', getcwd() );
|
||||
define( 'WP_CLI_PHAR_PATH', Phar::running( true ) );
|
||||
|
||||
if ( file_exists( 'phar://wp-cli.phar/php/wp-cli.php' ) ) {
|
||||
define( 'WP_CLI_ROOT', 'phar://wp-cli.phar' );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue