PluginProbe
Elementor Website Builder – more than just a page builder / 3.4.5
Elementor Website Builder – more than just a page builder v3.4.5
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 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | includes/base/controls-stack.php +13 -3 3.4.43.4.5 View file →
@@ -811,13 +811,23 @@
811 811
812 812 unset( $args['devices'] );
813 813 }
814 814
815 + $control_to_check = $args;
816 +
817 + if ( ! empty( $options['overwrite'] ) ) {
818 + $existing_control = Plugin::$instance->controls_manager->get_control_from_stack( $this->get_unique_name(), $id );
819 +
820 + if ( ! is_wp_error( $existing_control ) ) {
821 + $control_to_check = $existing_control;
822 + }
823 + }
824 +
815 825 $responsive_duplication_mode = Plugin::$instance->breakpoints->get_responsive_control_duplication_mode();
816 826 $additional_breakpoints_active = Plugin::$instance->experiments->is_feature_active( 'additional_custom_breakpoints' );
817 - $control_is_dynamic = ! empty( $args['dynamic']['active'] );
818 - $is_frontend_available = ! empty( $args['frontend_available'] );
819 - $has_prefix_class = ! empty( $args['prefix_class'] );
827 + $control_is_dynamic = ! empty( $control_to_check['dynamic']['active'] );
828 + $is_frontend_available = ! empty( $control_to_check['frontend_available'] );
829 + $has_prefix_class = ! empty( $control_to_check['prefix_class'] );
820 830
821 831 // If the new responsive controls experiment is active, create only one control - duplicates per device will
822 832 // be created in JS in the Editor.
823 833 if (