← All changes
|
modules/kit-elements-defaults/utils/settings-sanitizer.php
+2
-7
4.2.0-dev2
→
4.3.0-beta3
View file →
| @@ -4,8 +4,9 @@ | ||
| 4 | 4 | use Elementor\Core\Breakpoints\Manager as Breakpoints_Manager; |
| 5 | 5 | use Elementor\Element_Base; |
| 6 | 6 | use Elementor\Elements_Manager; |
| 7 | 7 | use Elementor\Core\Base\Document; |
| 8 | +use Elementor\Utils; | |
| 8 | 9 | |
| 9 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 10 | 11 | exit; // Exit if accessed directly. |
| 11 | 12 | } |
| @@ -120,15 +121,9 @@ | ||
| 120 | 121 | if ( ! $this->is_prepared() ) { |
| 121 | 122 | return $this; |
| 122 | 123 | } |
| 123 | 124 | |
| 124 | - $this->pending_settings = map_deep( $this->pending_settings, function( $value ) { | |
| 125 | - if ( ! is_string( $value ) ) { | |
| 126 | - return $value; | |
| 127 | - } | |
| 128 | - | |
| 129 | - return wp_kses_post( $value ); | |
| 130 | - } ); | |
| 125 | + $this->pending_settings = Utils::kses_post_deep( $this->pending_settings ); | |
| 131 | 126 | |
| 132 | 127 | return $this; |
| 133 | 128 | } |
| 134 | 129 | |