Making WordPress.org


Ignore:
Timestamp:
02/19/2017 09:20:00 PM (8 years ago)
Author:
ocean90
Message:

Login: Improve display of error messages and scrolling behaviour.

See #148.

File:
1 edited

Legend:

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

    r4543 r4946  
    4343
    4444<form name="registerform" id="registerform" action="/register" method="post">
     45
    4546    <p class="login-username">
    4647        <label for="user_login"><?php _e( 'Username', 'wporg-login' ); ?></label>
     
    4950    </p>
    5051    <?php
    51         if ( $error_user_login ) {
    52             echo '<div class="message error"><p>' . $error_user_login->get_data()['avatar'] . $error_user_login->get_data()['error'] . '</p></div>';
    53         }
     52    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>';
     54    }
    5455    ?>
    5556
     
    6061    </p>
    6162    <?php
    62         if ( $error_user_email ) {
    63             echo '<div class="message error"><p>' . $error_user_email->get_data()['avatar'] . $error_user_email->get_data()['error'] . '</p></div>';
    64         }
     63    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>';
     65    }
    6566    ?>
    6667
     
    9091    <a href="/" title="<?php esc_attr_e( 'Already have an account?', 'wporg-login' ); ?>"><?php _e( 'Already have an account?', 'wporg-login' ); ?></a> &nbsp; • &nbsp;
    9192    <a href="https://wordpress.org/"><?php _e( 'WordPress.org', 'wporg-login' ); ?></a>
    92    
     93
    9394</p>
    9495
    95 <?php get_footer(); ?>
     96<?php get_footer();
Note: See TracChangeset for help on using the changeset viewer.