parent
fcae260b43
commit
5888ef5b93
|
@ -886,7 +886,9 @@ class WC_Product extends WC_Abstract_Legacy_Product {
|
|||
* @param string $class Tax class.
|
||||
*/
|
||||
public function set_tax_class( $class ) {
|
||||
$this->set_prop( 'tax_class', wc_clean( $class ) );
|
||||
$class = sanitize_title( $class );
|
||||
$class = 'standard' === $class ? '' : $class;
|
||||
$this->set_prop( 'tax_class', $class );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue