Replace wc_get_base_location() with individual getters

This commit is contained in:
James Allan 2019-05-15 15:43:15 +10:00
parent 45b461639e
commit 6069854d9f
1 changed files with 2 additions and 3 deletions

View File

@ -1316,9 +1316,8 @@ abstract class WC_Abstract_Order extends WC_Abstract_Legacy_Order {
// Default to base.
if ( 'base' === $tax_based_on || empty( $args['country'] ) ) {
$default = wc_get_base_location();
$args['country'] = $default['country'];
$args['state'] = $default['state'];
$args['country'] = WC()->countries->get_base_country();
$args['state'] = WC()->countries->get_base_state();
$args['postcode'] = WC()->countries->get_base_postcode();
$args['city'] = WC()->countries->get_base_city();
}