| @@ -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 | } |