mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-18 04:25:07 +00:00
Do not re-generate the password after pressing "cancel". Persist the state.
Also removes pass2 code not needed since we're generating from one field. fixes #33164 Built from https://develop.svn.wordpress.org/trunk@33475 git-svn-id: http://core.svn.wordpress.org/trunk@33442 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
69107095b7
commit
bca4465edf
@ -178,7 +178,9 @@
|
|||||||
$generateButton.hide();
|
$generateButton.hide();
|
||||||
$passwordWrapper.show();
|
$passwordWrapper.show();
|
||||||
|
|
||||||
generatePassword();
|
if ( $pass1Text.val().length === 0 ) {
|
||||||
|
generatePassword();
|
||||||
|
}
|
||||||
|
|
||||||
_.defer( function() {
|
_.defer( function() {
|
||||||
$pass1Text.focus();
|
$pass1Text.focus();
|
||||||
@ -205,7 +207,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function check_pass_strength() {
|
function check_pass_strength() {
|
||||||
var pass1 = $('#pass1').val(), pass2 = $('#pass2').val(), strength;
|
var pass1 = $('#pass1').val(), strength;
|
||||||
|
|
||||||
$('#pass-strength-result').removeClass('short bad good strong');
|
$('#pass-strength-result').removeClass('short bad good strong');
|
||||||
if ( ! pass1 ) {
|
if ( ! pass1 ) {
|
||||||
@ -213,7 +215,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
strength = wp.passwordStrength.meter( pass1, wp.passwordStrength.userInputBlacklist(), pass2 );
|
strength = wp.passwordStrength.meter( pass1, wp.passwordStrength.userInputBlacklist(), pass1 );
|
||||||
|
|
||||||
switch ( strength ) {
|
switch ( strength ) {
|
||||||
case 2:
|
case 2:
|
||||||
|
2
wp-admin/js/user-profile.min.js
vendored
2
wp-admin/js/user-profile.min.js
vendored
File diff suppressed because one or more lines are too long
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.3-beta4-33474';
|
$wp_version = '4.3-beta4-33475';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user