| @@ 303-314 (lines=12) @@ | ||
| 300 | $this->total_step = ( ( count( $donation_ids ) / $this->per_step ) * 2 ) + count( $donor_ids ); |
|
| 301 | $this->step_completed = $page; |
|
| 302 | ||
| 303 | if ( $count > $this->per_step ) { |
|
| 304 | ||
| 305 | $this->update_option( $this->step_on_key, $page ); |
|
| 306 | $donation_ids = $this->get_delete_ids( $donation_ids, $page ); |
|
| 307 | $current_page = (int) ceil( $count / $this->per_step ); |
|
| 308 | ||
| 309 | if ( $page === $current_page ) { |
|
| 310 | $pass_to_donor = true; |
|
| 311 | } |
|
| 312 | } else { |
|
| 313 | $pass_to_donor = true; |
|
| 314 | } |
|
| 315 | ||
| 316 | if ( true === $pass_to_donor ) { |
|
| 317 | $this->update_option( $this->step_key, 'donor' ); |
|
| @@ 375-386 (lines=12) @@ | ||
| 372 | $this->total_step = ( ( count( $donation_ids ) / $this->per_step ) * 2 ) + count( $donor_ids ); |
|
| 373 | $this->step_completed = $page; |
|
| 374 | ||
| 375 | if ( $count > $this->per_step ) { |
|
| 376 | ||
| 377 | $this->update_option( $this->step_on_key, $page ); |
|
| 378 | $donation_ids = $this->get_delete_ids( $donation_ids, $page ); |
|
| 379 | $current_page = (int) ceil( $count / $this->per_step ); |
|
| 380 | ||
| 381 | if ( $page === $current_page ) { |
|
| 382 | $pass_to_donor = true; |
|
| 383 | } |
|
| 384 | } else { |
|
| 385 | $pass_to_donor = true; |
|
| 386 | } |
|
| 387 | ||
| 388 | if ( true === $pass_to_donor ) { |
|
| 389 | $this->update_option( $this->step_key, 'donor' ); |
|