Fixed language update for en_US, closes #8568

This commit is contained in:
Claudio Sanches 2015-07-14 12:18:51 -03:00
parent d2686f3d2e
commit a28c1c1e33
1 changed files with 3 additions and 2 deletions

View File

@ -159,12 +159,13 @@ class WC_Admin_Notices {
*/
public function translation_upgrade_notice() {
$screen = get_current_screen();
$locale = get_locale();
if ( 'en_US' === get_locale() ) {
if ( 'en_US' === $locale ) {
self::hide_translation_upgrade_notice();
}
if ( 'update-core' !== $screen->id ) {
if ( 'update-core' !== $screen->id && 'en_US' !== $locale ) {
include( 'views/html-notice-translation-upgrade.php' );
}
}