WordPress.org

Make WordPress Core

Ticket #21243: 21243.8.patch

File 21243.8.patch, 2.6 KB (added by Ankit K Gupta, 7 years ago)

Patch file with formatting

  • wp-admin/install.php

     
    133133                                <input name="admin_password" type="password" id="pass1" size="25" value="" />
    134134                                <p><input name="admin_password2" type="password" id="pass2" size="25" value="" /></p>
    135135                                <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
    136                                 <p><?php echo _wp_password_hint(); ?></p>
     136                                <p><?php echo _wp_get_password_hint(); ?></p>
    137137                        </td>
    138138                </tr>
    139139                <?php endif; ?>
  • wp-admin/user-edit.php

     
    470470        <p class="description"><?php _e( 'Type your new password again.' ); ?></p>
    471471        <br />
    472472        <div id="pass-strength-result"><?php _e( 'Strength indicator' ); ?></div>
    473         <p class="description indicator-hint"><?php echo _wp_password_hint(); ?></p>
     473        <p class="description indicator-hint"><?php echo _wp_get_password_hint(); ?></p>
    474474        </td>
    475475</tr>
    476476<?php endif; ?>
  • wp-admin/user-new.php

     
    400400                <input name="pass2" type="password" id="pass2" autocomplete="off" />
    401401                <br />
    402402                <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
    403                 <p class="description indicator-hint"><?php echo _wp_password_hint(); ?></p>
     403                <p class="description indicator-hint"><?php echo _wp_get_password_hint(); ?></p>
    404404                </td>
    405405        </tr>
    406406        <tr>
  • wp-includes/user.php

     
    20782078 *
    20792079 * @return string The password hint text.
    20802080 */
    2081 function _wp_password_hint() {
     2081function _wp_get_password_hint() {
    20822082        $hint = __( '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; ).' );
    20832083
    20842084        /**
  • wp-login.php

     
    626626        </p>
    627627
    628628        <div id="pass-strength-result" class="hide-if-no-js"><?php _e('Strength indicator'); ?></div>
    629         <p class="description indicator-hint"><?php echo _wp_password_hint(); ?></p>
     629        <p class="description indicator-hint"><?php echo _wp_get_password_hint(); ?></p>
    630630        <br class="clear" />
    631631
    632632        <?php