2 empties as PHP < 5.5 doens't like the join
This commit is contained in:
parent
064f2ebe17
commit
204d1ae166
|
@ -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' );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue