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