Skip to content

Commit

Permalink
This is for the current session and not the user edited
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd committed Feb 14, 2025
1 parent aa8cfda commit b2b605e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class-two-factor-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -1848,7 +1848,7 @@ public static function user_two_factor_options( $user ) {
// This is specific to the current session, not the displayed user.
$show_2fa_options = self::current_user_can_update_two_factor_options();

if ( $providers && ! $show_2fa_options ) {
if ( ! $show_2fa_options ) {
$url = add_query_arg(
'redirect_to',
urlencode( self::get_user_settings_page_url( $user->ID ) . '#two-factor-options' ),
Expand Down

0 comments on commit b2b605e

Please sign in to comment.