← All changes
|
modules/home/classes/transformations-manager.php
+4
-9
4.1.0-dev2
→
3.24.4
View file →
| @@ -2,12 +2,11 @@ | ||
| 2 | 2 | namespace Elementor\Modules\Home\Classes; |
| 3 | 3 | |
| 4 | 4 | use Elementor\Core\Isolation\Wordpress_Adapter; |
| 5 | 5 | use Elementor\Core\Isolation\Plugin_Status_Adapter; |
| 6 | -use Elementor\Includes\EditorAssetsAPI; | |
| 7 | 6 | |
| 8 | 7 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | - exit; // Exit if accessed directly. | |
| 8 | + exit; // Exit if accessed directly | |
| 10 | 9 | } |
| 11 | 10 | |
| 12 | 11 | class Transformations_Manager { |
| 13 | 12 | |
| @@ -14,14 +13,14 @@ | ||
| 14 | 13 | private static $cached_data = []; |
| 15 | 14 | |
| 16 | 15 | private const TRANSFORMATIONS = [ |
| 17 | 16 | 'Create_New_Page_Url', |
| 18 | - 'Create_Edit_Website_Url', | |
| 17 | + 'Filter_Plugins', | |
| 19 | 18 | 'Filter_Get_Started_By_License', |
| 20 | - 'Filter_Sidebar_Promotion_By_License', | |
| 19 | + 'Filter_Sidebar_Upgrade_By_License', | |
| 20 | + 'Filter_Condition_Introduction_Meta', | |
| 21 | 21 | 'Create_Site_Settings_Url', |
| 22 | 22 | 'Filter_Top_Section_By_License', |
| 23 | - 'Site_Builder_Config', | |
| 24 | 23 | ]; |
| 25 | 24 | |
| 26 | 25 | protected array $home_screen_data; |
| 27 | 26 | |
| @@ -38,12 +37,8 @@ | ||
| 38 | 37 | $this->transformation_classes = $this->get_transformation_classes(); |
| 39 | 38 | } |
| 40 | 39 | |
| 41 | 40 | public function run_transformations(): array { |
| 42 | - if ( ! EditorAssetsAPI::is_valid_data( $this->home_screen_data ) ) { | |
| 43 | - return []; | |
| 44 | - } | |
| 45 | - | |
| 46 | 41 | if ( ! empty( self::$cached_data ) ) { |
| 47 | 42 | return self::$cached_data; |
| 48 | 43 | } |
| 49 | 44 | |