Merge pull request #18124 from n-dawson/fix-exported-count
Fix calculation of total rows exported
This commit is contained in:
commit
f0846af533
|
@ -135,7 +135,7 @@ abstract class WC_CSV_Batch_Exporter extends WC_CSV_Exporter {
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function get_total_exported() {
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue