Update class-wc-product-csv-exporter.php

This commit is contained in:
ldybecklee 2018-07-17 12:10:55 +08:00 committed by GitHub
parent 0cf070ed5e
commit a7de4672dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -399,7 +399,7 @@ class WC_Product_CSV_Exporter extends WC_CSV_Batch_Exporter {
$manage_stock = $product->get_manage_stock( 'edit' );
$stock_quantity = $product->get_stock_quantity( 'edit' );
if ( $product->is_type( 'variation') && 'parent' === $manage_stock ) {
if ( $product->is_type( 'variation' ) && 'parent' === $manage_stock ) {
return 'parent';
} elseif ( $manage_stock ) {
return $stock_quantity;