PluginProbe
Elementor Website Builder – more than just a page builder / 4.0.9
Elementor Website Builder – more than just a page builder v4.0.9
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 4.1.0-beta1 4.1.0-dev1 All 452 releases
← All changes | modules/interactions/validation.php +3 -2 4.3.0-beta14.0.9 View file →
@@ -16,9 +16,9 @@
16 16 private $max_number_of_interactions = 5;
17 17
18 18 private const VALID_EFFECTS = [ 'fade', 'slide', 'scale', 'custom' ];
19 19 private const VALID_TYPES = [ 'in', 'out' ];
20 - private const VALID_DIRECTIONS = [ '', 'left', 'right', 'top', 'bottom', 'top-left', 'top-right', 'bottom-left', 'bottom-right' ];
20 + private const VALID_DIRECTIONS = [ '', 'left', 'right', 'top', 'bottom' ];
21 21 private const VALID_REPEAT_MODES = [ '', 'loop', 'times' ];
22 22
23 23 public function sanitize( $document ) {
24 24 return $this->sanitize_document_data( $document );
@@ -298,9 +298,10 @@
298 298 if ( ! $this->is_valid_string_prop( $animation_value, 'type', self::VALID_TYPES ) ) {
299 299 return false;
300 300 }
301 301
302 - if ( array_key_exists( 'direction', $animation_value ) && ! $this->is_valid_string_prop( $animation_value, 'direction', self::VALID_DIRECTIONS ) ) {
302 + // Validate direction (can be empty string)
303 + if ( ! $this->is_valid_string_prop( $animation_value, 'direction', self::VALID_DIRECTIONS ) ) {
303 304 return false;
304 305 }
305 306
306 307 // Validate timing_config