Allow set tax class as "parent"
This commit is contained in:
parent
5a2947d059
commit
8b96122f28
|
@ -1583,11 +1583,7 @@ class WC_REST_Products_Controller extends WC_REST_Posts_Controller {
|
||||||
|
|
||||||
// Tax class.
|
// Tax class.
|
||||||
if ( isset( $data['tax_class'] ) ) {
|
if ( isset( $data['tax_class'] ) ) {
|
||||||
if ( 'parent' !== $data['tax_class'] ) {
|
|
||||||
$variation->set_tax_class( $data['tax_class'] );
|
$variation->set_tax_class( $data['tax_class'] );
|
||||||
} else {
|
|
||||||
$variation->set_tax_class( '' );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Description.
|
// Description.
|
||||||
|
|
Loading…
Reference in New Issue