| @@ -2,8 +2,9 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Elementor\Modules\Checklist; |
| 4 | 4 | |
| 5 | 5 | use Elementor\Core\Base\Module as BaseModule; |
| 6 | +use Elementor\Core\Experiments\Manager; | |
| 6 | 7 | use Elementor\Modules\ElementorCounter\Module as Elementor_Counter; |
| 7 | 8 | use Elementor\Core\Isolation\Wordpress_Adapter; |
| 8 | 9 | use Elementor\Core\Isolation\Wordpress_Adapter_Interface; |
| 9 | 10 | use Elementor\Core\Isolation\Elementor_Adapter; |
| @@ -11,8 +12,9 @@ | ||
| 11 | 12 | use Elementor\Core\Isolation\Elementor_Counter_Adapter_Interface; |
| 12 | 13 | use Elementor\Plugin; |
| 13 | 14 | use Elementor\Utils; |
| 14 | 15 | use Elementor\Modules\Checklist\Data\Controller; |
| 16 | +use Elementor\Core\Utils\Isolation_Manager; | |
| 15 | 17 | |
| 16 | 18 | if ( ! defined( 'ABSPATH' ) ) { |
| 17 | 19 | exit; // Exit if accessed directly. |
| 18 | 20 | } |
| @@ -40,10 +42,10 @@ | ||
| 40 | 42 | public function __construct( |
| 41 | 43 | ?Wordpress_Adapter_Interface $wordpress_adapter = null, |
| 42 | 44 | ?Elementor_Adapter_Interface $elementor_adapter = null |
| 43 | 45 | ) { |
| 44 | - $this->wordpress_adapter = $wordpress_adapter ?? new Wordpress_Adapter(); | |
| 45 | - $this->elementor_adapter = $elementor_adapter ?? new Elementor_Adapter(); | |
| 46 | + $this->wordpress_adapter = $wordpress_adapter ?? Isolation_Manager::get_adapter( Wordpress_Adapter::class ); | |
| 47 | + $this->elementor_adapter = $elementor_adapter ?? Isolation_Manager::get_adapter( Elementor_Adapter::class ); | |
| 46 | 48 | |
| 47 | 49 | parent::__construct(); |
| 48 | 50 | $this->init_user_progress(); |
| 49 | 51 | |