| @@ -1,9 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | - | |
| 3 | 2 | namespace Elementor\Core\Base; |
| 4 | 3 | |
| 5 | 4 | use Elementor\Plugin; |
| 5 | +use Elementor\Core\Base\BackgroundProcess\WP_Background_Process; | |
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Based on https://github.com/woocommerce/woocommerce/blob/master/includes/abstracts/class-wc-background-process.php |
| 9 | 9 | * & https://github.com/woocommerce/woocommerce/blob/master/includes/class-wc-background-updater.php |
| @@ -10,15 +10,12 @@ | ||
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | defined( 'ABSPATH' ) || exit; |
| 13 | 13 | |
| 14 | -include_once ELEMENTOR_PATH . '/includes/libraries/wp-background-process/wp-async-request.php'; | |
| 15 | -include_once ELEMENTOR_PATH . '/includes/libraries/wp-background-process/wp-background-process.php'; | |
| 16 | - | |
| 17 | 14 | /** |
| 18 | 15 | * WC_Background_Process class. |
| 19 | 16 | */ |
| 20 | -abstract class Background_Task extends \WP_Background_Process { | |
| 17 | +abstract class Background_Task extends WP_Background_Process { | |
| 21 | 18 | protected $current_item; |
| 22 | 19 | |
| 23 | 20 | /** |
| 24 | 21 | * Dispatch updater. |