You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: php/commands/src/CLI_Command.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -286,7 +286,7 @@ public function check_update( $_, $assoc_args ) {
286
286
*
287
287
* # Update CLI.
288
288
* $ 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
290
290
* Downloading from https://github.com/wp-cli/wp-cli/releases/download/v0.24.1/wp-cli-0.24.1.phar...
291
291
* New version works. Proceeding to replace.
292
292
* Success: Updated WP-CLI to 0.24.1.
@@ -305,12 +305,12 @@ public function update( $_, $assoc_args ) {
305
305
}
306
306
307
307
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 );
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 );
0 commit comments