Skip to content
Snippets Groups Projects
Verified Commit 8266e545 authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

fix: allow TextFieldSanitizer process array values

parent 4a0aa3ca
No related branches found
No related tags found
3 merge requests!28release: 3.0.0,!25fix: allow TextFieldSanitizer process array values,!19Add strong typing for 3.0 version
Pipeline #6557 passed with stages
in 1 minute and 5 seconds
# Changelog
## [2.4.11]
### Changed
- Allow TextFieldSanitizer to process array values
## [2.4.10] - 2021-10-01
### Changed
- Render form data without using echo
......
......@@ -6,6 +6,9 @@ use WPDesk\Forms\Sanitizer;
class TextFieldSanitizer implements Sanitizer {
public function sanitize( $value ) {
if ( is_array( $value ) ) {
return array_map('sanitize_text_field', $value);
}
return sanitize_text_field( $value );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment