diff --git a/includes/admin/class-wc-admin-setup-wizard.php b/includes/admin/class-wc-admin-setup-wizard.php index e59daadd7ae..5dcf74a4354 100644 --- a/includes/admin/class-wc-admin-setup-wizard.php +++ b/includes/admin/class-wc-admin-setup-wizard.php @@ -708,8 +708,6 @@ class WC_Admin_Setup_Wizard { * Shipping. */ public function wc_setup_shipping() { - $dimension_unit = get_option( 'woocommerce_dimension_unit', false ); - $weight_unit = get_option( 'woocommerce_weight_unit', false ); $country_code = WC()->countries->get_base_country(); $country_name = WC()->countries->countries[ $country_code ]; $prefixed_country_name = WC()->countries->estimated_for_prefix( $country_code ) . $country_name; @@ -717,14 +715,12 @@ class WC_Admin_Setup_Wizard { $wcs_carrier = $this->get_wcs_shipping_carrier( $country_code, $currency_code ); $existing_zones = WC_Shipping_Zones::get_zones(); - if ( false === $dimension_unit || false === $weight_unit ) { - if ( 'US' === $country_code ) { - $dimension_unit = 'in'; - $weight_unit = 'oz'; - } else { - $dimension_unit = 'cm'; - $weight_unit = 'kg'; - } + if ( 'US' === $country_code ) { + $dimension_unit = 'in'; + $weight_unit = 'oz'; + } else { + $dimension_unit = 'cm'; + $weight_unit = 'kg'; } if ( ! empty( $existing_zones ) ) {