Merge pull request #20629 from vishalkakadiya/fix/remove-unwanted-condition

Remove unwanted(double) condition for address line 2
This commit is contained in:
Claudiu Lodromanean 2018-06-26 12:20:18 -07:00 committed by GitHub
commit 3bff14974c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -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'] );
} }