WordPress.org

Making WordPress.org

Changeset 4952


Ignore:
Timestamp:
02/19/2017 10:21:18 PM (4 years ago)
Author:
ocean90
Message:

Login: On the post-register page show the email address to give users a hint whether they entered the correct email.

See #148.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/js/registration.js

    r4946 r4952  
    2626                        $this.addClass( 'error' );
    2727                        $this.parents( 'p' ).after(
    28                             "<div class='message error'><p>" +
     28                            '<div class="message error' + ( datas.avatar ? ' with-avatar' : '' ) +  '"><p>' +
    2929                            ( datas.avatar ? datas.avatar : '' ) + '<span>' +
    3030                            datas.error +
    31                             "</span></p></div>"
     31                            '</span></p></div>'
    3232                        );
    3333                    } else {
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/register-profile.php

    r4534 r4952  
    3131get_header();
    3232?>
    33 <div class="message info"><p><?php _e( "Please check your email for a confirmation link to set your password.", 'wporg-login' ); ?></p></div>
     33<div class="message info">
     34    <p><?php
     35        printf(
     36            /* translators: %s Email address */
     37            __( 'Please check your email %s for a confirmation link to set your password.', 'wporg-login' ),
     38            '<code>' . esc_html( wp_get_current_user()->user_email ) . '</code>'
     39        );
     40    ?></p>
     41</div>
    3442
    3543<p class="intro">
     
    4856
    4957<p id="nav">
    50     <a href="https://wordpress.org/"><?php _e( 'WordPress.org', 'wporg-login' ); ?></a> 
     58    <a href="https://wordpress.org/"><?php _e( 'WordPress.org', 'wporg-login' ); ?></a>
    5159</p>
    5260
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/register.php

    r4946 r4952  
    5151    <?php
    5252    if ( $error_user_login ) {
    53         echo '<div class="message error"><p>' . $error_user_login->get_data()['avatar'] . '<span>' . $error_user_login->get_data()['error'] . '</span></p></div>';
     53        printf(
     54            '<div class="message error%s"><p>%s<span>%s</span></p></div>',
     55            $error_user_login->get_data()['avatar'] ? ' with-avatar' : '',
     56            $error_user_login->get_data()['avatar'],
     57            $error_user_login->get_data()['error']
     58        );
    5459    }
    5560    ?>
     
    6267    <?php
    6368    if ( $error_user_email ) {
    64         echo '<div class="message error"><p>' . $error_user_email->get_data()['avatar'] . '<span>' . $error_user_email->get_data()['error'] . '</span></p></div>';
     69        printf(
     70            '<div class="message error%s"><p>%s<span>%s</span></p></div>',
     71            $error_user_email->get_data()['avatar'] ? ' with-avatar' : '',
     72            $error_user_email->get_data()['avatar'],
     73            $error_user_email->get_data()['error']
     74        );
    6575    }
    6676    ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/stylesheets/login.css

    r4946 r4952  
    367367body.route-register-confirm #login .message p {
    368368    margin: 0;
     369}
     370
     371body.route-register #login .message.with-avatar p,
     372body.route-register-profile #login .message.with-avatar p,
     373body.route-register-confirm #login .message.with-avatar p {
    369374    display: -webkit-box;
    370375    display: -ms-flexbox;
Note: See TracChangeset for help on using the changeset viewer.