From 11222655e57c808d1ab4ddba7104b8587600dc40 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 10 May 2017 17:27:31 +0100 Subject: [PATCH] Fix publish status --- includes/export/class-wc-product-csv-exporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/export/class-wc-product-csv-exporter.php b/includes/export/class-wc-product-csv-exporter.php index ca044731bb0..8234fa8539a 100644 --- a/includes/export/class-wc-product-csv-exporter.php +++ b/includes/export/class-wc-product-csv-exporter.php @@ -108,7 +108,7 @@ class WC_Product_CSV_Exporter extends WC_CSV_Batch_Exporter { // Handle special columns which don't map 1:1 to product data. if ( 'published' === $column_id ) { - $value = 'published' === $product->get_status( 'edit' ) ? 1 : 0; + $value = 'publish' === $product->get_status( 'edit' ) ? 1 : 0; } elseif ( 'category_ids' === $column_id ) { $term_ids = $product->get_category_ids( 'edit' );