Add back WC_Tax::maybe_remove_tax_class_rates removed in #23093 and deprecate it instead.
This commit is contained in:
parent
d91c10ebbf
commit
0e316c238d
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue