WordPress.org

Making WordPress.org

Changeset 6749


Ignore:
Timestamp:
02/26/2018 02:57:48 AM (3 years ago)
Author:
obenland
Message:

2FA: Avoid double error messages.

See #77.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-two-factor/wporg-two-factor.php

    r6748 r6749  
    273273                    <input type="tel" name="two-factor-totp-authcode" class="input" value="" size="20" pattern="[0-9]*" placeholder="<?php esc_attr_e( 'e.g. 123456', 'wporg' ); ?>" />
    274274                </p>
    275                 <div>
    276                     <small>
    277                         <?php
    278                         /* translators: 1: URL to Authy; 2: URL to Google Authenticator */
    279                         printf( wp_kses_post( __( 'Not sure what this screen means? You may need to download <a href="%1$s">Authy</a> or <a href="%2$s">Google Authenticator</a> for your phone.', 'wporg' ) ), esc_url( 'https://authy.com/download/' ), esc_url( 'https://support.google.com/accounts/answer/1066447?hl=' . get_locale() ) );
    280                         ?>
    281                     </small>
    282                 </div>
     275                <small class="description">
     276                    <?php
     277                    /* translators: 1: URL to Authy; 2: URL to Google Authenticator */
     278                    printf( wp_kses_post( __( 'Not sure what this screen means? You may need to download <a href="%1$s">Authy</a> or <a href="%2$s">Google Authenticator</a> for your phone.', 'wporg' ) ), esc_url( 'https://authy.com/download/' ), esc_url( 'https://support.google.com/accounts/answer/1066447?hl=' . get_locale() ) );
     279                    ?>
     280                </small>
    283281                <button type="cancel" class="button button-secondary alignleft"><?php esc_html_e( 'Cancel', 'wporg' ); ?></button>
    284282                <button type="submit" class="button button-primary alignright"><?php esc_html_e( 'Enable', 'wporg' ); ?></button>
     
    298296                    <input type="tel" name="two-factor-totp-authcode" class="input" value="" size="20" pattern="[0-9]*" placeholder="<?php esc_attr_e( 'e.g. 123456', 'wporg' ); ?>" />
    299297                </p>
    300                 <div>
    301                     <small>
    302                         <?php
    303                         /* translators: 1: URL to Authy; 2: URL to Google Authenticator */
    304                         printf( wp_kses_post( __( 'Not sure what this screen means? You may need to download <a href="%1$s">Authy</a> or <a href="%2$s">Google Authenticator</a> for your phone.', 'wporg' ) ), esc_url( 'https://authy.com/download/' ), esc_url( 'https://support.google.com/accounts/answer/1066447?hl=' . get_locale() ) );
    305                         ?>
    306                     </small>
    307                 </div>
     298                <small class="description">
     299                    <?php
     300                    /* translators: 1: URL to Authy; 2: URL to Google Authenticator */
     301                    printf( wp_kses_post( __( 'Not sure what this screen means? You may need to download <a href="%1$s">Authy</a> or <a href="%2$s">Google Authenticator</a> for your phone.', 'wporg' ) ), esc_url( 'https://authy.com/download/' ), esc_url( 'https://support.google.com/accounts/answer/1066447?hl=' . get_locale() ) );
     302                    ?>
     303                </small>
    308304                <button type="cancel" class="button button-secondary alignleft"><?php esc_html_e( 'Cancel', 'wporg' ); ?></button>
    309305                <button type="submit" class="button button-primary alignright"><?php esc_html_e( 'Enable', 'wporg' ); ?></button>
     
    331327                width: 60% !important;
    332328            }
     329            #bbpress-forums .two-factor .description {
     330                display: block;
     331                margin-bottom: 20px;
     332            }
    333333            .dashicons-clipboard:before {
    334334                transform: rotate( -45deg );
Note: See TracChangeset for help on using the changeset viewer.