Move password hint text to a function. Add 'password_hint' filter.

props convissor.
fixes #21243.

git-svn-id: https://develop.svn.wordpress.org/trunk@29962 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2014-10-18 20:20:56 +00:00
parent ac90567ef1
commit 5ab446aab7
5 changed files with 25 additions and 5 deletions

View File

@@ -470,7 +470,7 @@ if ( $show_password_fields ) :
<p class="description"><?php _e( 'Type your new password again.' ); ?></p>
<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 ! " ? $ % ^ &amp; ).' ); ?></p>
<p class="description indicator-hint"><?php echo _wp_password_hint(); ?></p>
</td>
</tr>
<?php endif; ?>