Skip to content

Commit

Permalink
Hide the Language dropdown when we're on a 2FA page. See WordPress#520
Browse files Browse the repository at this point in the history
  • Loading branch information
dd32 committed Apr 13, 2023
1 parent fd68f88 commit 3dcf9c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions class-two-factor-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ) {
Expand Down

0 comments on commit 3dcf9c5

Please sign in to comment.