Don't throw 'typed only once' error when both password entries are blank. http://mosquito.wordpress.org/view.php?id=1178
git-svn-id: http://svn.automattic.com/wordpress/trunk@2489 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5534514f39
commit
19c83838cf
|
@ -40,7 +40,7 @@ $pass2 = $_POST['pass2'];
|
||||||
do_action('check_passwords', array($new_user_login, &$pass1, &$pass2));
|
do_action('check_passwords', array($new_user_login, &$pass1, &$pass2));
|
||||||
|
|
||||||
if ( '' == $pass1 ) {
|
if ( '' == $pass1 ) {
|
||||||
if ( '' == $pass2 )
|
if ( '' != $pass2 )
|
||||||
die (__("<strong>ERROR</strong>: you typed your new password only once. Go back to type it twice."));
|
die (__("<strong>ERROR</strong>: you typed your new password only once. Go back to type it twice."));
|
||||||
$updatepassword = '';
|
$updatepassword = '';
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue