| @@ 1716-1722 (lines=7) @@ | ||
| 1713 | }  | 
                                |
| 1714 | ||
| 1715 | // Tax class  | 
                                |
| 1716 | 			if ( isset( $variation['tax_class'] ) ) { | 
                                |
| 1717 | 				if ( $variation['tax_class'] !== 'parent' ) { | 
                                |
| 1718 | update_post_meta( $variation_id, '_tax_class', wc_clean( $variation['tax_class'] ) );  | 
                                |
| 1719 | 				} else { | 
                                |
| 1720 | delete_post_meta( $variation_id, '_tax_class' );  | 
                                |
| 1721 | }  | 
                                |
| 1722 | }  | 
                                |
| 1723 | ||
| 1724 | // Downloads  | 
                                |
| 1725 | 			if ( 'yes' == $is_downloadable ) { | 
                                |
| @@ 1494-1500 (lines=7) @@ | ||
| 1491 | _wc_save_product_price( $variation_id, $regular_price, $sale_price, $date_from, $date_to );  | 
                                |
| 1492 | ||
| 1493 | // Tax class.  | 
                                |
| 1494 | 			if ( isset( $variation['tax_class'] ) ) { | 
                                |
| 1495 | 				if ( $variation['tax_class'] !== 'parent' ) { | 
                                |
| 1496 | update_post_meta( $variation_id, '_tax_class', wc_clean( $variation['tax_class'] ) );  | 
                                |
| 1497 | 				} else { | 
                                |
| 1498 | delete_post_meta( $variation_id, '_tax_class' );  | 
                                |
| 1499 | }  | 
                                |
| 1500 | }  | 
                                |
| 1501 | ||
| 1502 | // Downloads.  | 
                                |
| 1503 | 			if ( 'yes' === $is_downloadable ) { | 
                                |