Fixed language update for en_US, closes #8568
This commit is contained in:
parent
d2686f3d2e
commit
a28c1c1e33
|
@ -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' );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue