Make WordPress Core

Changeset 24531


Ignore:
Timestamp:
06/30/2013 11:13:34 AM (13 years ago)
Author:
ocean90
Message:

Add a label to the second password field on User New and User Edit screen. props MikeHansenMe. fixes #20294.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r24317 r24531  
    377377<tr id="password">
    378378        <th><label for="pass1"><?php _e('New Password'); ?></label></th>
    379         <td><input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" /> <span class="description"><?php _e("If you would like to change the password type a new one. Otherwise leave this blank."); ?></span><br />
    380                 <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" /> <span class="description"><?php _e("Type your new password again."); ?></span><br />
    381                 <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
    382                 <p class="description indicator-hint"><?php _e('Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ &amp; ).'); ?></p>
     379        <td><input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" /> <span class="description"><?php _e("If you would like to change the password type a new one. Otherwise leave this blank."); ?></span>
     380        </td>
     381</tr>
     382<tr>
     383        <th scope="row"><label for="pass2"><?php _e('Repeat New Password'); ?></label></th>
     384        <td>
     385        <input name="pass2" type="password" id="pass2" size="16" value="" autocomplete="off" /> <span class="description" for="pass2"><?php _e("Type your new password again."); ?></span>
     386        <br />
     387        <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
     388        <p class="description indicator-hint"><?php _e('Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ &amp; ).'); ?></p>
    383389        </td>
    384390</tr>
  • trunk/wp-admin/user-new.php

    r24317 r24531  
    341341<?php if ( apply_filters('show_password_fields', true) ) : ?>
    342342        <tr class="form-field form-required">
    343                 <th scope="row"><label for="pass1"><?php _e('Password'); ?> <span class="description"><?php /* translators: password input field */_e('(twice, required)'); ?></span></label></th>
     343                <th scope="row"><label for="pass1"><?php _e('Password'); ?> <span class="description"><?php /* translators: password input field */_e('(required)'); ?></span></label></th>
    344344                <td><input name="pass1" type="password" id="pass1" autocomplete="off" />
    345                 <br />
     345                </td>
     346        </tr>
     347        <tr class="form-field form-required">
     348                <th scope="row"><label for="pass2"><?php _e('Repeat Password'); ?> <span class="description"><?php /* translators: password input field */_e('(required)'); ?></span></label></th>
     349                <td>
    346350                <input name="pass2" type="password" id="pass2" autocomplete="off" />
    347351                <br />
Note: See TracChangeset for help on using the changeset viewer.