PluginProbe
Elementor Website Builder – more than just a page builder / 3.21.0-beta2
Elementor Website Builder – more than just a page builder v3.21.0-beta2
4.3.3 4.3.2 4.3.1 4.3.0 4.3.0-beta3 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 All 456 releases
← All changes | modules/home/classes/transformations-manager.php +4 -15 4.2.2 → 3.21.0-beta2 View file →
@@ -1,13 +1,11 @@
1 1 <?php
2 2 namespace Elementor\Modules\Home\Classes;
3 3
4 4 use Elementor\Core\Isolation\Wordpress_Adapter;
5 -use Elementor\Core\Isolation\Plugin_Status_Adapter;
6 -use Elementor\Includes\EditorAssetsAPI;
7 5
8 6 if ( ! defined( 'ABSPATH' ) ) {
9 - exit; // Exit if accessed directly.
7 + exit; // Exit if accessed directly
10 8 }
11 9
12 10 class Transformations_Manager {
13 11
@@ -14,14 +12,13 @@
14 12 private static $cached_data = [];
15 13
16 14 private const TRANSFORMATIONS = [
17 15 'Create_New_Page_Url',
18 - 'Create_Edit_Website_Url',
16 + 'Filter_Plugins',
19 17 'Filter_Get_Started_By_License',
20 - 'Filter_Sidebar_Promotion_By_License',
18 + 'Filter_Sidebar_Upgrade_By_License',
21 19 'Create_Site_Settings_Url',
22 - 'Filter_Top_Section_By_License',
23 - 'Site_Builder_Config',
20 + 'Filter_Condition_Introduction_Meta',
24 21 ];
25 22
26 23 protected array $home_screen_data;
27 24
@@ -26,24 +23,17 @@
26 23 protected array $home_screen_data;
27 24
28 25 protected Wordpress_Adapter $wordpress_adapter;
29 26
30 - protected Plugin_Status_Adapter $plugin_status_adapter;
31 -
32 27 protected array $transformation_classes = [];
33 28
34 29 public function __construct( $home_screen_data ) {
35 30 $this->home_screen_data = $home_screen_data;
36 31 $this->wordpress_adapter = new Wordpress_Adapter();
37 - $this->plugin_status_adapter = new Plugin_Status_Adapter( $this->wordpress_adapter );
38 32 $this->transformation_classes = $this->get_transformation_classes();
39 33 }
40 34
41 35 public function run_transformations(): array {
42 - if ( ! EditorAssetsAPI::is_valid_data( $this->home_screen_data ) ) {
43 - return [];
44 - }
45 -
46 36 if ( ! empty( self::$cached_data ) ) {
47 37 return self::$cached_data;
48 38 }
49 39
@@ -64,9 +54,8 @@
64 54 $transformations = self::TRANSFORMATIONS;
65 55
66 56 $arguments = [
67 57 'wordpress_adapter' => $this->wordpress_adapter,
68 - 'plugin_status_adapter' => $this->plugin_status_adapter,
69 58 ];
70 59
71 60 foreach ( $transformations as $transformation_id ) {
72 61 $class_name = '\\Elementor\\Modules\\Home\\Transformations\\' . $transformation_id;