Password UI: The non-breaking space doesn't need to be translatable. Add some context to password strength strings.
see #32589. git-svn-id: https://develop.svn.wordpress.org/trunk@33166 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7a238fe2d6
commit
e5cc94a45e
@ -115,7 +115,7 @@
|
|||||||
|
|
||||||
$('#pass-strength-result').removeClass('short bad good strong');
|
$('#pass-strength-result').removeClass('short bad good strong');
|
||||||
if ( ! pass1 ) {
|
if ( ! pass1 ) {
|
||||||
$('#pass-strength-result').html( pwsL10n.empty );
|
$('#pass-strength-result').html( ' ' );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -365,13 +365,11 @@ function wp_default_scripts( &$scripts ) {
|
|||||||
|
|
||||||
$scripts->add( 'password-strength-meter', "/wp-admin/js/password-strength-meter$suffix.js", array( 'jquery', 'zxcvbn-async' ), false, 1 );
|
$scripts->add( 'password-strength-meter', "/wp-admin/js/password-strength-meter$suffix.js", array( 'jquery', 'zxcvbn-async' ), false, 1 );
|
||||||
did_action( 'init' ) && $scripts->localize( 'password-strength-meter', 'pwsL10n', array(
|
did_action( 'init' ) && $scripts->localize( 'password-strength-meter', 'pwsL10n', array(
|
||||||
'empty' => __(' '),
|
'short' => _x( 'Very weak', 'password strength' ),
|
||||||
'short' => __('Very weak'),
|
'bad' => _x( 'Weak', 'password strength' ),
|
||||||
'bad' => __('Weak'),
|
'good' => _x( 'Medium', 'password strength' ),
|
||||||
/* translators: password strength */
|
'strong' => _x( 'Strong', 'password strength' ),
|
||||||
'good' => _x('Medium', 'password strength'),
|
'mismatch' => _x( 'Mismatch', 'password mismatch' ),
|
||||||
'strong' => __('Strong'),
|
|
||||||
'mismatch' => __('Mismatch')
|
|
||||||
) );
|
) );
|
||||||
|
|
||||||
$scripts->add( 'user-profile', "/wp-admin/js/user-profile$suffix.js", array( 'jquery', 'password-strength-meter', 'wp-util' ), false, 1 );
|
$scripts->add( 'user-profile', "/wp-admin/js/user-profile$suffix.js", array( 'jquery', 'password-strength-meter', 'wp-util' ), false, 1 );
|
||||||
|
Loading…
Reference in New Issue
Block a user