WordPress.org

Make WordPress Core

Ticket #21243: 21243.2.diff

File 21243.2.diff, 3.8 KB (added by SergeyBiryukov, 9 years ago)
  • wp-admin/install.php

     
    120120                                <input name="admin_password" type="password" id="pass1" size="25" value="" />
    121121                                <p><input name="admin_password2" type="password" id="pass2" size="25" value="" /></p>
    122122                                <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
    123                                 <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>
     123                                <p><?php echo _wp_password_hint(); ?></p>
    124124                        </td>
    125125                </tr>
    126126                <?php endif; ?>
  • wp-admin/user-edit.php

     
    379379        <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 />
    380380                <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" /> <span class="description"><?php _e("Type your new password again."); ?></span><br />
    381381                <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>
     382                <p class="description indicator-hint"><?php echo _wp_password_hint(); ?></p>
    383383        </td>
    384384</tr>
    385385<?php endif; ?>
  • wp-admin/user-new.php

     
    342342                <input name="pass2" type="password" id="pass2" autocomplete="off" />
    343343                <br />
    344344                <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
    345                 <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>
     345                <p class="description indicator-hint"><?php echo _wp_password_hint(); ?></p>
    346346                </td>
    347347        </tr>
    348348        <tr>
  • wp-includes/user.php

     
    14871487        );
    14881488        return apply_filters( 'user_contactmethods', $user_contactmethods, $user );
    14891489}
     1490
     1491/**
     1492 * Gets the text suggesting how to create good passwords.
     1493 *
     1494 * @since 3.5.0
     1495 * @access private
     1496 *
     1497 * @return string The password hint text.
     1498 */
     1499function _wp_password_hint() {
     1500        $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; ).' );
     1501        return apply_filters( 'password_hint', $hint );
     1502}
  • wp-login.php

     
    489489        </p>
    490490
    491491        <div id="pass-strength-result" class="hide-if-no-js"><?php _e('Strength indicator'); ?></div>
    492         <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>
     492        <p class="description indicator-hint"><?php echo _wp_password_hint(); ?></p>
    493493
    494494        <br class="clear" />
    495495        <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="<?php esc_attr_e('Reset Password'); ?>" tabindex="100" /></p>