| @@ -1,17 +1,14 @@ | ||
| 1 | 1 | <?php |
| 2 | -/** | |
| 3 | - * Based on https://github.com/woocommerce/woocommerce/blob/master/includes/abstracts/class-wc-background-process.php | |
| 4 | - * & https://github.com/woocommerce/woocommerce/blob/master/includes/class-wc-background-updater.php | |
| 5 | - * | |
| 6 | - * @package Elementor\Core\Base | |
| 7 | - */ | |
| 8 | - | |
| 9 | 2 | namespace Elementor\Core\Base; |
| 10 | 3 | |
| 11 | 4 | use Elementor\Plugin; |
| 12 | 5 | use Elementor\Core\Base\BackgroundProcess\WP_Background_Process; |
| 13 | 6 | |
| 7 | +/** | |
| 8 | + * Based on https://github.com/woocommerce/woocommerce/blob/master/includes/abstracts/class-wc-background-process.php | |
| 9 | + * & https://github.com/woocommerce/woocommerce/blob/master/includes/class-wc-background-updater.php | |
| 10 | + */ | |
| 14 | 11 | |
| 15 | 12 | defined( 'ABSPATH' ) || exit; |
| 16 | 13 | |
| 17 | 14 | /** |
| @@ -211,9 +208,8 @@ | ||
| 211 | 208 | } |
| 212 | 209 | |
| 213 | 210 | /** |
| 214 | 211 | * Use the protected `is_process_running` method as a public method. |
| 215 | - * | |
| 216 | 212 | * @return bool |
| 217 | 213 | */ |
| 218 | 214 | public function is_process_locked() { |
| 219 | 215 | return $this->is_process_running(); |
| @@ -287,9 +283,9 @@ | ||
| 287 | 283 | } elseif ( 1 === $item['iterate_num'] ) { |
| 288 | 284 | $logger->info( sprintf( '%s callback needs to run more %d times', $callback, $item['total'] - $item['iterate_num'] ) ); |
| 289 | 285 | } |
| 290 | 286 | |
| 291 | - ++$item['iterate_num']; | |
| 287 | + $item['iterate_num']++; | |
| 292 | 288 | } else { |
| 293 | 289 | $logger->info( sprintf( '%s Finished', $callback ) ); |
| 294 | 290 | } |
| 295 | 291 | } else { |