← All changes
|
modules/components/circular-dependency-validator.php
+2
-1
4.1.2
→
4.3.0-beta3
View file →
| @@ -3,8 +3,9 @@ | ||
| 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; | |
| 7 | 8 | use Elementor\Plugin; |
| 8 | 9 | |
| 9 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 10 | 11 | exit; |
| @@ -144,9 +145,9 @@ | ||
| 144 | 145 | return array_unique( $ids, SORT_REGULAR ); |
| 145 | 146 | } |
| 146 | 147 | |
| 147 | 148 | private function extract_component_id_from_settings( array $settings ) { |
| 148 | - return $settings['component_instance']['value']['component_id']['value'] ?? null; | |
| 149 | + return Component_Instance_Prop_Type::extract_component_id( $settings ); | |
| 149 | 150 | } |
| 150 | 151 | |
| 151 | 152 | private function build_error_response( $component_id, $via_component_id = null ): array { |
| 152 | 153 | if ( null === $via_component_id ) { |