Making WordPress.org

Changeset 14013


Ignore:
Timestamp:
09/02/2024 03:27:04 AM (6 weeks ago)
Author:
dufresnesteven
Message:

wporg-login: Connect onboarding wizard to 2fa nag screen shown on login.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/enable-2fa.php

    r13982 r14013  
    11<?php
    2 use function WordPressdotorg\Two_Factor\{ user_requires_2fa, user_should_2fa, get_edit_account_url };
     2use function WordPressdotorg\Two_Factor\{ user_requires_2fa, user_should_2fa, get_onboarding_account_url };
    33/**
    44 * The 'Enable 2FA' notification screen.
     
    4949<p>&nbsp;</p>
    5050
    51 <p><a href="<?php echo esc_url( get_edit_account_url() ); ?>"><button class="button-primary"><?php _e( "OK, I'll setup Two-Factor now.", 'wporg-login' ); ?></button></a></p>
     51<p><a href="<?php echo esc_url( add_query_arg( 'redirect_to', urlencode( $redirect_to ), get_onboarding_account_url() ) ); ?>"><button class="button-primary"><?php _e( "OK, I'll setup Two-Factor now.", 'wporg-login' ); ?></button></a></p>
    5252
    5353<?php if ( ! $requires_2fa ) { ?>
Note: See TracChangeset for help on using the changeset viewer.