From 589ce2f544155724ee133f0cb04ef5b70e2569c3 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Mon, 15 Aug 2016 18:26:00 +0100 Subject: [PATCH] Write context --- includes/class-wc-customer.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/class-wc-customer.php b/includes/class-wc-customer.php index 6ffb677f738..8fbaec5eb04 100644 --- a/includes/class-wc-customer.php +++ b/includes/class-wc-customer.php @@ -161,19 +161,19 @@ class WC_Customer extends WC_Legacy_Customer { $default = wc_get_customer_default_location(); // Set some defaults if some of our values are still not set. - if ( empty( $this->get_billing_country() ) ) { + if ( ! $this->get_billing_country() ) { $this->set_billing_country( $default['country'] ); } - if ( empty( $this->get_shipping_country() ) ) { + if ( ! $this->get_shipping_country() ) { $this->set_shipping_country( $this->get_billing_country() ); } - if ( empty( $this->get_billing_state() ) ) { + if ( ! $this->get_billing_state() ) { $this->set_billing_state( $default['state'] ); } - if ( empty( $this->get_shipping_state() ) ) { + if ( ! $this->get_shipping_state() ) { $this->set_shipping_state( $this->get_billing_state() ); } }