AMP_Base_Sanitizer::should_sanitize_validation_error

AMP_Base_Sanitizer::should_sanitize_validation_error( array $validation_error,  array $data = array() )

Description #

Check whether or not sanitization should occur in response to validation error.


Parameters #

$validation_error

(array) (Required) Validation error.

$data

(array) (Optional) Data including the node.

Default value:array()


Return #

(bool) Whether to sanitize.


Changelog #

Changelog
Version Description
1.0 Introduced.