Merge pull request #17204 from willgorham/fix/cart-shortcode-deprecated-functions

Fix deprecated functions in cart shortcode
This commit is contained in:
Mike Jolley 2017-10-13 19:38:21 +01:00 committed by GitHub
commit cebddcd67c
1 changed files with 2 additions and 2 deletions

View File

@ -38,8 +38,8 @@ class WC_Shortcode_Cart {
WC()->customer->set_location( $country, $state, $postcode, $city );
WC()->customer->set_shipping_location( $country, $state, $postcode, $city );
} else {
WC()->customer->set_to_base();
WC()->customer->set_shipping_to_base();
WC()->customer->set_billing_address_to_base();
WC()->customer->set_shipping_address_to_base();
}
WC()->customer->set_calculated_shipping( true );