Convert standard to '' in CRUD

Closes #12896
This commit is contained in:
Mike Jolley 2017-02-07 17:22:04 +00:00
parent fcae260b43
commit 5888ef5b93
1 changed files with 3 additions and 1 deletions

View File

@ -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 );
}
/**