You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1821,22 +1823,20 @@ public static function user_two_factor_options( $user ) {
1821
1823
$show_2fa_options ? '' : 'disabled="disabled"'
1822
1824
);
1823
1825
1824
-
$notices = [];
1825
-
if ( empty( $enabled_providers ) ) {
1826
-
$notices[] = __( 'Configure a primary two-factor method along with a backup method, such as Recovery Codes, to avoid being locked out if you lose access to your primary method.', 'two-factor' );
1827
-
} elseif ( 1 === count( $enabled_providers ) ) {
1828
-
$notices['warning'] = __( 'To prevent being locked out of your account, consider enabling a backup method like Recovery Codes in case you lose access to your primary authentication method.', 'two-factor' );
1826
+
if ( 1 === count( $enabled_providers ) ) {
1827
+
$notices['warning two-factor-warning-suggest-backup'] = esc_html__( 'To prevent being locked out of your account, consider enabling a backup method like Recovery Codes in case you lose access to your primary authentication method.', 'two-factor' );
<?phpesc_html_e( 'Configure a primary two-factor method along with a backup method, such as Recovery Codes, to avoid being locked out if you lose access to your primary method.', 'two-factor' ); ?>
<input type="hidden" name="<?phpechoesc_attr( self::ENABLED_PROVIDERS_USER_META_KEY ); ?>[]" value="<?php/* Dummy input so $_POST value is passed when no providers are enabled. */?>" />
0 commit comments