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 Feb 14, 2023
1 parent ecf180d commit 85ddaa1
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 @@ -670,6 +670,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 85ddaa1

Please sign in to comment.