Merge pull request #18124 from n-dawson/fix-exported-count

Fix calculation of total rows exported
This commit is contained in:
Gerhard Potgieter 2017-12-13 13:13:52 +02:00 committed by GitHub
commit f0846af533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
/**