Fix calculation of total rows exported

This commit is contained in:
Nathan Dawson 2017-12-12 19:33:48 +00:00
parent 1343cf0697
commit 28a54fe983
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;
}
/**