make logic consistent with `woocommerce_formatted_address_force_country_display` filter name
This commit is contained in:
parent
b551f57173
commit
91ddf1f7c1
|
@ -548,7 +548,7 @@ class WC_Countries {
|
|||
$full_country = ( isset( $this->countries[ $country ] ) ) ? $this->countries[ $country ] : $country;
|
||||
|
||||
// Country is not needed if the same as base.
|
||||
if ( $country === $this->get_base_country() && ! apply_filters( 'woocommerce_formatted_address_force_country_display', true ) ) {
|
||||
if ( $country === $this->get_base_country() && ! apply_filters( 'woocommerce_formatted_address_force_country_display', false ) ) {
|
||||
$format = str_replace( '{country}', '', $format );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue