From 28a54fe9834bca187508b3319bad9fa916aa25be Mon Sep 17 00:00:00 2001 From: Nathan Dawson Date: Tue, 12 Dec 2017 19:33:48 +0000 Subject: [PATCH] Fix calculation of total rows exported --- includes/export/abstract-wc-csv-batch-exporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/export/abstract-wc-csv-batch-exporter.php b/includes/export/abstract-wc-csv-batch-exporter.php index 04b0f8038e9..21583ae55c0 100644 --- a/includes/export/abstract-wc-csv-batch-exporter.php +++ b/includes/export/abstract-wc-csv-batch-exporter.php @@ -135,7 +135,7 @@ abstract class WC_CSV_Batch_Exporter extends WC_CSV_Exporter { * @return int */ public function get_total_exported() { - return ( $this->get_page() * $this->get_limit() ) + $this->exported_row_count; + return ( ( $this->get_page() - 1 ) * $this->get_limit() ) + $this->exported_row_count; } /**