← All changes
|
modules/home/transformations/create-site-settings-url.php
+2
-2
4.3.0-beta3
→
3.35.8
View file →
| @@ -1,9 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Elementor\Modules\Home\Transformations; |
| 3 | 3 | |
| 4 | 4 | use Elementor\Core\DocumentTypes\Page; |
| 5 | -use Elementor\Includes\EditorAssetsAPI; | |
| 6 | 5 | |
| 7 | 6 | if ( ! defined( 'ABSPATH' ) ) { |
| 8 | 7 | exit; // Exit if accessed directly. |
| 9 | 8 | } |
| @@ -9,12 +8,13 @@ | ||
| 9 | 8 | } |
| 10 | 9 | |
| 11 | 10 | class Create_Site_Settings_Url extends Base\Transformations_Abstract { |
| 12 | 11 | |
| 12 | + | |
| 13 | 13 | const SITE_SETTINGS_ITEMS = [ 'Site Settings', 'Site Logo', 'Global Colors', 'Global Fonts' ]; |
| 14 | 14 | |
| 15 | 15 | public function transform( array $home_screen_data ): array { |
| 16 | - if ( ! EditorAssetsAPI::has_valid_nested_array( $home_screen_data, [ 'get_started', 'repeater' ] ) ) { | |
| 16 | + if ( empty( $home_screen_data['get_started'] ) ) { | |
| 17 | 17 | return $home_screen_data; |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | $site_settings_url_config = Page::get_site_settings_url_config(); |