From 3dcf9c53fcc8af71e07448263e1884b5c4604290 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Tue, 14 Feb 2023 16:22:46 +1000 Subject: [PATCH] Hide the Language dropdown when we're on a 2FA page. See #520 --- class-two-factor-core.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/class-two-factor-core.php b/class-two-factor-core.php index 6e6a6b53..4d89df82 100644 --- a/class-two-factor-core.php +++ b/class-two-factor-core.php @@ -725,6 +725,9 @@ public static function login_html( $user, $login_nonce, $redirect_to, $error_msg include_once TWO_FACTOR_DIR . 'includes/function.login-header.php'; } + // Disable the language switcher. + add_filter( 'login_display_language_dropdown', '__return_false' ); + login_header(); if ( ! empty( $error_msg ) ) {