make logic consistent with `woocommerce_formatted_address_force_country_display` filter name

This commit is contained in:
Ron Rennick 2018-11-08 16:35:57 -04:00
parent b551f57173
commit 91ddf1f7c1
1 changed files with 1 additions and 1 deletions

View File

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