PluginProbe
Elementor Website Builder – more than just a page builder / 3.31.4
Elementor Website Builder – more than just a page builder v3.31.4
4.3.1 4.3.0 4.3.0-beta3 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 All 454 releases
← All changes | modules/atomic-widgets/parsers/props-parser.php +1 -8 4.3.13.31.4 View file →
@@ -2,9 +2,8 @@
2 2
3 3 namespace Elementor\Modules\AtomicWidgets\Parsers;
4 4
5 5 use Elementor\Modules\AtomicWidgets\PropTypes\Contracts\Prop_Type;
6 -use Elementor\Core\Utils\Api\Parse_Result;
7 6
8 7 if ( ! defined( 'ABSPATH' ) ) {
9 8 exit; // Exit if accessed directly.
10 9 }
@@ -66,15 +65,9 @@
66 65 if ( ! isset( $props[ $key ] ) ) {
67 66 continue;
68 67 }
69 68
70 - $sanitized_value = $prop_type->sanitize( $props[ $key ] );
71 -
72 - if ( ! $prop_type->should_persist( $sanitized_value ) ) {
73 - continue;
74 - }
75 -
76 - $sanitized[ $key ] = $sanitized_value;
69 + $sanitized[ $key ] = $prop_type->sanitize( $props[ $key ] );
77 70 }
78 71
79 72 return Parse_Result::make()->wrap( $sanitized );
80 73 }