updated plugin Easy Digital Downloads version 3.1.2

This commit is contained in:
2023-06-28 12:45:44 +00:00
committed by Gitium
parent 44df590080
commit f710fa7de2
120 changed files with 5556 additions and 3347 deletions

View File

@ -608,13 +608,14 @@ class EDD_Batch_Payments_Import extends EDD_Batch_Import {
*/
public function get_percentage_complete() {
$total = count( $this->csv );
$percentage = 0;
$total = count( $this->csv );
if( $total > 0 ) {
if ( $total > 0 ) {
$percentage = ( $this->step * $this->per_step / $total ) * 100;
}
if( $percentage > 100 ) {
if ( $percentage > 100 ) {
$percentage = 100;
}