Skip to content

Commit 0315ddc

Browse files
swissspidyCopilot
andauthored
Update src/Core_Language_Command.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 68d48c1 commit 0315ddc

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎src/Core_Language_Command.php‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,11 @@ public function install( $args, $assoc_args ) {
235235
$errors = 0;
236236
$skips = 0;
237237
foreach ( $language_codes as $language_code ) {
238-
$result = [
239-
'locale' => $language_code,
240-
];
238+
if ( $has_format_flag ) {
239+
$result = [
240+
'locale' => $language_code,
241+
];
242+
}
241243

242244
if ( in_array( $language_code, $available, true ) ) {
243245
\WP_CLI::log( "Language '{$language_code}' already installed." );

0 commit comments

Comments
 (0)