PluginProbe
Elementor Website Builder – more than just a page builder / 3.30.2
Elementor Website Builder – more than just a page builder v3.30.2
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | modules/checklist/module.php +4 -2 4.0.73.30.2 View file →
@@ -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