← All changes
|
modules/kit-elements-defaults/utils/settings-sanitizer.php
+3
-3
4.2.4
→
3.9.2
View file →
| @@ -4,9 +4,8 @@ | ||
| 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; | |
| 9 | 8 | |
| 10 | 9 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | 10 | exit; // Exit if accessed directly. |
| 12 | 11 | } |
| @@ -39,9 +38,9 @@ | ||
| 39 | 38 | private $pending_settings = null; |
| 40 | 39 | |
| 41 | 40 | /** |
| 42 | 41 | * @param Elements_Manager $elements_manager |
| 43 | - * @param array $widget_types | |
| 42 | + * @param array $widget_types | |
| 44 | 43 | */ |
| 45 | 44 | public function __construct( Elements_Manager $elements_manager, array $widget_types = [] ) { |
| 46 | 45 | $this->elements_manager = $elements_manager; |
| 47 | 46 | $this->widget_types = $widget_types; |
| @@ -121,9 +120,9 @@ | ||
| 121 | 120 | if ( ! $this->is_prepared() ) { |
| 122 | 121 | return $this; |
| 123 | 122 | } |
| 124 | 123 | |
| 125 | - $this->pending_settings = Utils::kses_post_deep( $this->pending_settings ); | |
| 124 | + $this->pending_settings = wp_kses_post_deep( $this->pending_settings ); | |
| 126 | 125 | |
| 127 | 126 | return $this; |
| 128 | 127 | } |
| 129 | 128 | |
| @@ -161,8 +160,9 @@ | ||
| 161 | 160 | } |
| 162 | 161 | |
| 163 | 162 | /** |
| 164 | 163 | * @param string $type |
| 164 | + * @param array $settings | |
| 165 | 165 | * |
| 166 | 166 | * @return Element_Base|null |
| 167 | 167 | */ |
| 168 | 168 | private function create_element( $type ) { |