From 0e316c238d11f96e897a7376912dcd5e32caf0de Mon Sep 17 00:00:00 2001 From: Gerhard Date: Mon, 22 Jul 2019 14:11:11 +0200 Subject: [PATCH] Add back WC_Tax::maybe_remove_tax_class_rates removed in #23093 and deprecate it instead. --- includes/class-wc-tax.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/includes/class-wc-tax.php b/includes/class-wc-tax.php index 1e9cc3148b3..65a6909372c 100644 --- a/includes/class-wc-tax.php +++ b/includes/class-wc-tax.php @@ -36,6 +36,17 @@ class WC_Tax { self::$round_at_subtotal = 'yes' === get_option( 'woocommerce_tax_round_at_subtotal' ); } + /** + * When the woocommerce_tax_classes option is changed, remove any orphan rates. + * + * @deprecated 3.7.0 + * @param string $old_value Old rates value. + * @param string $value New rates value. + */ + public static function maybe_remove_tax_class_rates( $old_value, $value ) { + wc_deprecated_function( 'WC_Tax::maybe_remove_tax_class_rates', '3.7' ); + } + /** * Calculate tax for a line. *