WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/14/09 17:01:04 (9 years ago)
Author:
azaozz
Message:

Don't display empty values in the user display name drop-down, props Simek, fix js to add newly entered First Name and Last Name, fixes #9813

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/user-new.php

    r11319 r11330  
    9292<table class="form-table"> 
    9393    <tr class="form-field form-required"> 
    94         <th scope="row"><label for="user_login"><?php _e('Username (required)') ?></label><input name="action" type="hidden" id="action" value="adduser" /></th> 
    95         <td ><input name="user_login" type="text" id="user_login" value="<?php echo esc_attr($new_user_login); ?>" aria-required="true" /></td> 
     94        <th scope="row"><label for="user_login"><?php _e('Username'); ?> <span class="description"><?php _e('(required)'); ?></span></label> 
     95        <input name="action" type="hidden" id="action" value="adduser" /></th> 
     96        <td><input name="user_login" type="text" id="user_login" value="<?php echo esc_attr($new_user_login); ?>" aria-required="true" /></td> 
    9697    </tr> 
    9798    <tr class="form-field"> 
     
    104105    </tr> 
    105106    <tr class="form-field form-required"> 
    106         <th scope="row"><label for="email"><?php _e('E-mail (required)') ?></label></th> 
     107        <th scope="row"><label for="email"><?php _e('E-mail'); ?> <span class="description"><?php _e('(required)'); ?></span></label></th> 
    107108        <td><input name="email" type="text" id="email" value="<?php echo esc_attr($new_user_email); ?>" /></td> 
    108109    </tr> 
     
    114115<?php if ( apply_filters('show_password_fields', true) ) : ?> 
    115116    <tr class="form-field form-required"> 
    116         <th scope="row"><label for="pass1"><?php _e('Password (twice)') ?> </label></th> 
     117        <th scope="row"><label for="pass1"><?php _e('Password'); ?> <span class="description"><?php _e('(twice, required)'); ?></span></label></th> 
    117118        <td><input name="pass1" type="password" id="pass1" autocomplete="off" /> 
    118119        <br /> 
Note: See TracChangeset for help on using the changeset viewer.