Replace wc_get_base_location() with individual getters
This commit is contained in:
parent
45b461639e
commit
6069854d9f
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue