Add back WC_Tax::maybe_remove_tax_class_rates removed in #23093 and deprecate it instead.

This commit is contained in:
Gerhard 2019-07-22 14:11:11 +02:00
parent d91c10ebbf
commit 0e316c238d
1 changed files with 11 additions and 0 deletions

View File

@ -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.
*