Skip to content
Snippets Groups Projects
Select Git revision
  • 8266e545eebfa26ecfe99a0b60e1f960fa24533f
  • master default protected
  • devel
  • feature/add-escaping-to-templates
  • feature/add-priority-sorting
  • 3.3.0
  • 3.2.1
  • 3.2.0
  • 3.1.0
  • 3.0.0
  • 2.4.12
  • 2.4.11
  • 2.4.10
  • 2.4.9
  • 2.4.8
  • 2.4.7
  • 2.4.6
  • 2.4.5
  • 2.4.4
  • 2.4.2
  • 2.4.1
  • 2.4.0
  • 2.3.2
  • 2.3.1
  • 2.3
25 results

TextFieldSanitizer.php

Blame
  • TextFieldSanitizer.php 289 B
    <?php
    
    namespace WPDesk\Forms\Sanitizer;
    
    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 );
    	}
    
    }