From 91ddf1f7c1f5790f3262be40d333b87abcc2df0f Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Thu, 8 Nov 2018 16:35:57 -0400 Subject: [PATCH] make logic consistent with `woocommerce_formatted_address_force_country_display` filter name --- includes/class-wc-countries.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-countries.php b/includes/class-wc-countries.php index 535477b8d38..7ba2899053d 100644 --- a/includes/class-wc-countries.php +++ b/includes/class-wc-countries.php @@ -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 ); }