From 7a59ff84208f4c1ebbc9db24f567741c915a0ff3 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Tue, 13 Sep 2016 07:10:55 -0700 Subject: [PATCH] Permit updating language packs even when `en_US` is set as locale This makes `wp core language update` more useful to those with installed language packs. --- php/WP_CLI/CommandWithTranslation.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/php/WP_CLI/CommandWithTranslation.php b/php/WP_CLI/CommandWithTranslation.php index cba6ec7571..2b0adea2a8 100644 --- a/php/WP_CLI/CommandWithTranslation.php +++ b/php/WP_CLI/CommandWithTranslation.php @@ -172,13 +172,6 @@ public function install( $args, $assoc_args ) { */ public function update( $args, $assoc_args ) { - // Ignore updates for the default locale. - if ( 'en_US' == get_locale() ) { - \WP_CLI::success( "Translations updates are not needed for the 'English (US)' locale." ); - - return; - } - $updates = $this->get_translation_updates(); if ( empty( $updates ) ) { \WP_CLI::success( 'Translations are up to date.' );