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 -14 4.3.0 → 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,13 +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',
20 + 'Filter_Condition_Introduction_Meta',
23 21 ];
24 22
25 23 protected array $home_screen_data;
26 24
@@ -25,24 +23,17 @@
25 23 protected array $home_screen_data;
26 24
27 25 protected Wordpress_Adapter $wordpress_adapter;
28 26
29 - protected Plugin_Status_Adapter $plugin_status_adapter;
30 -
31 27 protected array $transformation_classes = [];
32 28
33 29 public function __construct( $home_screen_data ) {
34 30 $this->home_screen_data = $home_screen_data;
35 31 $this->wordpress_adapter = new Wordpress_Adapter();
36 - $this->plugin_status_adapter = new Plugin_Status_Adapter( $this->wordpress_adapter );
37 32 $this->transformation_classes = $this->get_transformation_classes();
38 33 }
39 34
40 35 public function run_transformations(): array {
41 - if ( ! EditorAssetsAPI::is_valid_data( $this->home_screen_data ) ) {
42 - return [];
43 - }
44 -
45 36 if ( ! empty( self::$cached_data ) ) {
46 37 return self::$cached_data;
47 38 }
48 39
@@ -63,9 +54,8 @@
63 54 $transformations = self::TRANSFORMATIONS;
64 55
65 56 $arguments = [
66 57 'wordpress_adapter' => $this->wordpress_adapter,
67 - 'plugin_status_adapter' => $this->plugin_status_adapter,
68 58 ];
69 59
70 60 foreach ( $transformations as $transformation_id ) {
71 61 $class_name = '\\Elementor\\Modules\\Home\\Transformations\\' . $transformation_id;