Skip to content

Commit f983a4a

Browse files
authored
Update WP-CLI update message
1 parent b8f16d6 commit f983a4a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

php/commands/src/CLI_Command.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public function check_update( $_, $assoc_args ) {
286286
*
287287
* # Update CLI.
288288
* $ wp cli update
289-
* You have version 0.24.0. Would you like to update to 0.24.1? [y/n] y
289+
* You are currently using WP-CLI version 0.24.0. Would you like to update to 0.24.1? [y/n] y
290290
* Downloading from https://github.com/wp-cli/wp-cli/releases/download/v0.24.1/wp-cli-0.24.1.phar...
291291
* New version works. Proceeding to replace.
292292
* Success: Updated WP-CLI to 0.24.1.
@@ -305,12 +305,12 @@ public function update( $_, $assoc_args ) {
305305
}
306306

307307
if ( Utils\get_flag_value( $assoc_args, 'nightly' ) ) {
308-
WP_CLI::confirm( sprintf( 'You have version %s. Would you like to update to the latest nightly?', WP_CLI_VERSION ), $assoc_args );
308+
WP_CLI::confirm( sprintf( 'You are currently using WP-CLI version %s. Would you like to update to the latest nightly version?', WP_CLI_VERSION ), $assoc_args );
309309
$download_url = 'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli-nightly.phar';
310310
$md5_url = 'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli-nightly.phar.md5';
311311
$sha512_url = 'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli-nightly.phar.sha512';
312312
} elseif ( Utils\get_flag_value( $assoc_args, 'stable' ) ) {
313-
WP_CLI::confirm( sprintf( 'You have version %s. Would you like to update to the latest stable release?', WP_CLI_VERSION ), $assoc_args );
313+
WP_CLI::confirm( sprintf( 'You are currently using WP-CLI version %s. Would you like to update to the latest stable release?', WP_CLI_VERSION ), $assoc_args );
314314
$download_url = 'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar';
315315
$md5_url = 'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar.md5';
316316
$sha512_url = 'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar.sha512';

0 commit comments

Comments
 (0)