diff --git a/includes/admin/settings/class-wc-settings-shipping.php b/includes/admin/settings/class-wc-settings-shipping.php index f34eb287011..11e66d59a5d 100644 --- a/includes/admin/settings/class-wc-settings-shipping.php +++ b/includes/admin/settings/class-wc-settings-shipping.php @@ -286,7 +286,7 @@ class WC_Settings_Shipping extends WC_Settings_Page { * Show zones */ protected function zones_screen() { - $method_count = wc_get_shipping_method_count(); + $method_count = wc_get_shipping_method_count( false, true ); wp_localize_script( 'wc-shipping-zones', diff --git a/includes/wc-core-functions.php b/includes/wc-core-functions.php index 1ecb985e5cd..3119d7ba08b 100644 --- a/includes/wc-core-functions.php +++ b/includes/wc-core-functions.php @@ -1495,7 +1495,7 @@ function wc_postcode_location_matcher( $postcode, $objects, $object_id_key, $obj * @param bool $include_legacy Count legacy shipping methods too. * @param bool $enabled_only Whether non-legacy shipping methods should be * restricted to enabled ones. It doesn't affect - * legacy shipping methods. @since 4.2.0. + * legacy shipping methods. @since 4.3.0. * @return int */ function wc_get_shipping_method_count( $include_legacy = false, $enabled_only = false ) {