Change password fix Closes #2518.

This commit is contained in:
Mike Jolley 2013-02-25 11:21:37 +00:00
parent 566e10eeb0
commit 86fce66aa0
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) )