2 empties as PHP < 5.5 doens't like the join

This commit is contained in:
Mike Jolley 2015-01-21 14:25:59 +00:00
parent 064f2ebe17
commit 204d1ae166
1 changed files with 1 additions and 1 deletions

View File

@ -844,7 +844,7 @@ class WC_Form_Handler {
return;
}
if ( empty( $posted_fields['password_1'] . $_POST['password_2'] ) ) {
if ( empty( $posted_fields['password_1'] ) || empty( $_POST['password_2'] ) ) {
wc_add_notice( __( 'Please enter your password.', 'woocommerce' ), 'error' );
}