WordPress.org

Make WordPress Core

Ticket #20294: 20294.2.diff

File 20294.2.diff, 2.8 KB (added by MikeHansenMe, 19 months ago)

adds label to user-new page

  • wp-admin/user-new.php

     
    341341        </tr> 
    342342<?php if ( apply_filters('show_password_fields', true) ) : ?> 
    343343        <tr class="form-field form-required"> 
    344                 <th scope="row"><label for="pass1"><?php _e('Password'); ?> <span class="description"><?php /* translators: password input field */_e('(twice, required)'); ?></span></label></th> 
     344                <th scope="row"><label for="pass1"><?php _e('Password'); ?> <span class="description"><?php /* translators: password input field */_e('(required)'); ?></span></label></th> 
    345345                <td><input name="pass1" type="password" id="pass1" autocomplete="off" /> 
    346                 <br /> 
     346                </td> 
     347        </tr> 
     348        <tr> 
     349                <th scope="row"><label for="pass2"><?php _e('Repeat Password'); ?> <span class="description"><?php /* translators: password input field */_e('(required)'); ?></span></label></th> 
     350                <td scope="row"> 
    347351                <input name="pass2" type="password" id="pass2" autocomplete="off" /> 
    348352                <br /> 
    349353                <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div> 
  • wp-admin/user-edit.php

     
    378378<tr id="password"> 
    379379        <th><label for="pass1"><?php _e('New Password'); ?></label></th> 
    380380        <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 /> 
    381                 <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                <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" /> <label class="description" for="pass2"><?php _e("Type your new password again."); ?></label><br /> 
    382382                <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div> 
    383383                <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> 
    384384        </td> 
  • wp-admin/css/wp-admin.css

     
    34663466p.help, 
    34673467p.description, 
    34683468span.description, 
     3469label.description, 
    34693470.form-wrap p { 
    34703471        font-size: 12px; 
    34713472        font-style: italic; 
     
    82708271.locale-zh-cn p.help, 
    82718272.locale-zh-cn p.description, 
    82728273.locale-zh-cn span.description, 
     8274.locale-zh-cn label.description, 
    82738275.locale-zh-cn .form-wrap p { 
    82748276        font-style: normal; 
    82758277}