Skip to content

Commit 7faddef

Browse files
swissspidyCopilot
andauthored
Update src/WP_CLI/CommandWithTranslation.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 32041f7 commit 7faddef

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/WP_CLI/CommandWithTranslation.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,8 @@ protected function get_installed_languages( $slug = 'default' ) {
325325
}
326326

327327
$available = ! empty( $available[ $text_domain ] ) ? array_keys( $available[ $text_domain ] ) : array();
328+
// en_US is always installed for core, but may not be available for plugins/themes,
329+
// especially when custom translation sources are used.
328330
if ( 'core' === $this->obj_type ) {
329331
$available[] = 'en_US';
330332
}

0 commit comments

Comments
 (0)