get_taxable_address does not need to handle geolocation_ajax any more

This commit is contained in:
Mike Jolley 2015-06-22 15:30:34 +01:00
parent f988aae387
commit eb4cbaf69f
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ class WC_Customer {
$tax_based_on = 'base';
}
if ( 'base' === $tax_based_on || ( 'geolocation_ajax' === get_option( 'woocommerce_default_customer_address' ) && empty( $_GET['location'] ) && ! defined( 'WOOCOMMERCE_CHECKOUT' ) && ! defined( 'WOOCOMMERCE_CART' ) ) ) {
if ( 'base' === $tax_based_on ) {
$default = wc_get_base_location();
$country = $default['country'];
$state = $default['state'];