← All changes
|
modules/components/circular-dependency-validator.php
+1
-2
4.3.0-beta3
→
3.35.0-dev4
View file →
| @@ -3,9 +3,8 @@ | ||
| 3 | 3 | namespace Elementor\Modules\Components; |
| 4 | 4 | |
| 5 | 5 | use Elementor\Core\Utils\Collection; |
| 6 | 6 | use Elementor\Modules\Components\Documents\Component as Component_Document; |
| 7 | -use Elementor\Modules\Components\PropTypes\Component_Instance_Prop_Type; | |
| 8 | 7 | use Elementor\Plugin; |
| 9 | 8 | |
| 10 | 9 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | 10 | exit; |
| @@ -145,9 +144,9 @@ | ||
| 145 | 144 | return array_unique( $ids, SORT_REGULAR ); |
| 146 | 145 | } |
| 147 | 146 | |
| 148 | 147 | private function extract_component_id_from_settings( array $settings ) { |
| 149 | - return Component_Instance_Prop_Type::extract_component_id( $settings ); | |
| 148 | + return $settings['component_instance']['value']['component_id']['value'] ?? null; | |
| 150 | 149 | } |
| 151 | 150 | |
| 152 | 151 | private function build_error_response( $component_id, $via_component_id = null ): array { |
| 153 | 152 | if ( null === $via_component_id ) { |