Add a label to the second password field on User New and User Edit screen. props MikeHansenMe. fixes #20294.
git-svn-id: https://develop.svn.wordpress.org/trunk@24531 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
21704cfdc0
commit
f05db78268
|
@ -376,8 +376,14 @@ if ( $show_password_fields ) :
|
|||
?>
|
||||
<tr id="password">
|
||||
<th><label for="pass1"><?php _e('New Password'); ?></label></th>
|
||||
<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 />
|
||||
<input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" /> <span class="description"><?php _e("Type your new password again."); ?></span><br />
|
||||
<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>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="pass2"><?php _e('Repeat New Password'); ?></label></th>
|
||||
<td>
|
||||
<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>
|
||||
<br />
|
||||
<div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
|
||||
<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 ! " ? $ % ^ & ).'); ?></p>
|
||||
</td>
|
||||
|
|
|
@ -340,9 +340,13 @@ foreach ( array( 'user_login' => 'login', 'first_name' => 'firstname', 'last_nam
|
|||
</tr>
|
||||
<?php if ( apply_filters('show_password_fields', true) ) : ?>
|
||||
<tr class="form-field form-required">
|
||||
<th scope="row"><label for="pass1"><?php _e('Password'); ?> <span class="description"><?php /* translators: password input field */_e('(twice, required)'); ?></span></label></th>
|
||||
<th scope="row"><label for="pass1"><?php _e('Password'); ?> <span class="description"><?php /* translators: password input field */_e('(required)'); ?></span></label></th>
|
||||
<td><input name="pass1" type="password" id="pass1" autocomplete="off" />
|
||||
<br />
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="form-field form-required">
|
||||
<th scope="row"><label for="pass2"><?php _e('Repeat Password'); ?> <span class="description"><?php /* translators: password input field */_e('(required)'); ?></span></label></th>
|
||||
<td>
|
||||
<input name="pass2" type="password" id="pass2" autocomplete="off" />
|
||||
<br />
|
||||
<div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
|
||||
|
|
Loading…
Reference in New Issue