This was not needed after all.
This commit is contained in:
parent
b4657d5a42
commit
970a77b43b
|
@ -682,8 +682,6 @@ class WC_Product_CSV_Importer extends WC_Product_Importer {
|
|||
$data['status'] = isset( $statuses[ $data['published'] ] ) ? $statuses[ $data['published'] ] : -1;
|
||||
|
||||
unset( $data['published'] );
|
||||
} else {
|
||||
$data['status'] = 'publish';
|
||||
}
|
||||
|
||||
if ( isset( $data['stock_quantity'] ) ) {
|
||||
|
|
Loading…
Reference in New Issue