Merge pull request #20629 from vishalkakadiya/fix/remove-unwanted-condition
Remove unwanted(double) condition for address line 2
This commit is contained in:
commit
3bff14974c
|
@ -693,12 +693,6 @@ class WC_Countries {
|
||||||
unset( $fields['company'] );
|
unset( $fields['company'] );
|
||||||
}
|
}
|
||||||
|
|
||||||
$address_2_visibility = get_option( 'woocommerce_checkout_address_2_field', 'optional' );
|
|
||||||
|
|
||||||
if ( 'hidden' === $address_2_visibility ) {
|
|
||||||
unset( $fields['address_2'] );
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( 'hidden' === get_option( 'woocommerce_checkout_address_2_field', 'optional' ) ) {
|
if ( 'hidden' === get_option( 'woocommerce_checkout_address_2_field', 'optional' ) ) {
|
||||||
unset( $fields['address_2'] );
|
unset( $fields['address_2'] );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue