Don't throw 'typed only once' error when both password entries are blank. http://mosquito.wordpress.org/view.php?id=1178
git-svn-id: https://develop.svn.wordpress.org/trunk@2489 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
56b9394fb8
commit
57fe641ff1
@ -40,7 +40,7 @@ $pass2 = $_POST['pass2'];
|
||||
do_action('check_passwords', array($new_user_login, &$pass1, &$pass2));
|
||||
|
||||
if ( '' == $pass1 ) {
|
||||
if ( '' == $pass2 )
|
||||
if ( '' != $pass2 )
|
||||
die (__("<strong>ERROR</strong>: you typed your new password only once. Go back to type it twice."));
|
||||
$updatepassword = '';
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user