Skip to content

Commit a92af64

Browse files
committed
Undo unrelated changes
1 parent efe1656 commit a92af64

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/Core_Language_Command.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -260,16 +260,12 @@ public function uninstall( $args, $assoc_args ) {
260260

261261
foreach ( $language_codes as $language_code ) {
262262
if ( ! in_array( $language_code, $available, true ) ) {
263-
if ( count( $language_codes ) === 1 ) {
264-
WP_CLI::error( 'Language not installed.' );
265-
} else {
266-
WP_CLI::warning( 'Language not installed.' );
267-
}
263+
WP_CLI::warning( 'Language not installed.' );
268264
}
269265

270266
if ( $language_code === $current_locale ) {
271267
WP_CLI::warning( "The '{$language_code}' language is active." );
272-
continue;
268+
exit;
273269
}
274270

275271
$files_to_remove = array(

src/Plugin_Language_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ public function uninstall( $args, $assoc_args ) {
472472

473473
if ( $language_code === $current_locale ) {
474474
\WP_CLI::warning( "The '{$language_code}' language is active." );
475-
continue;
475+
exit;
476476
}
477477

478478
$files_to_remove = array(

0 commit comments

Comments
 (0)