WordPress.org

Make WordPress Core

Ticket #21243: 21243.diff

File 21243.diff, 3.4 KB (added by voldemortensen, 7 years ago)
  • src/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 _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>
     136                                <p><?php echo _wp_password_hint(); ?></p>
    137137                        </td>
    138138                </tr>
    139139                <?php endif; ?>
  • src/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 _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>
     473        <p class="description indicator-hint"><?php echo _wp_password_hint(); ?></p>
    474474        </td>
    475475</tr>
    476476<?php endif; ?>
  • src/wp-admin/user-new.php

     
    397397                <input name="pass2" type="password" id="pass2" autocomplete="off" />
    398398                <br />
    399399                <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
    400                 <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>
     400                <p class="description indicator-hint"><?php echo _wp_password_hint(); ?></p>
    401401                </td>
    402402        </tr>
    403403        <tr>
  • src/wp-includes/user.php

     
    20152015}
    20162016
    20172017/**
     2018 * Gets the text suggesting how to create strong passwords.
     2019 *
     2020 * @since 4.1
     2021 * @access private
     2022 *
     2023 * @return string The password hing text.
     2024 */
     2025function _wp_password_hing() {
     2026        $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; ).' );
     2027        return apply_filters( 'password_hint', $hint );
     2028}
     2029
     2030/**
    20182031 * The old private function for setting up user contact methods.
    20192032 *
    20202033 * @since 2.9.0
  • src/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 _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>
    630 
     629        <p class="description indicator-hint"><?php echo _wp_password_hint(); ?></p>
    631630        <br class="clear" />
    632631
    633632        <?php