Change password fix Closes #2518.
This commit is contained in:
parent
566e10eeb0
commit
86fce66aa0
|
@ -1551,7 +1551,7 @@ function woocommerce_save_password() {
|
|||
$_POST = array_map( 'woocommerce_clean', $_POST );
|
||||
|
||||
$pass1 = ! empty( $_POST[ 'password_1' ] ) ? $_POST[ 'password_1' ] : '';
|
||||
$pass2 = ! empty( $_POST[ 'password_1' ] ) ? $_POST[ 'password_1' ] : '';
|
||||
$pass2 = ! empty( $_POST[ 'password_2' ] ) ? $_POST[ 'password_2' ] : '';
|
||||
$user->user_pass = $pass1;
|
||||
|
||||
if ( empty( $pass1 ) || empty( $pass2 ) )
|
||||
|
|
Loading…
Reference in New Issue