packages/kirki-framework/control-select/src/Field/Select.php
public function sanitize( $value ) {
		if ( is_array( $value ) ) {
			foreach ( $value as $key => $subvalue ) {
				if ( '' !== $subvalue || isset( $this->choices[''] ) ) {
					$key           = sanitize_key( $key );
					$value[ $key ] = sanitize_text_field( $subvalue );
				}
			}
			return $value;
		}
		return sanitize_text_field( $value );
	}
public function sanitize( $value ) {
		if ( is_array( $value ) ) {
			foreach ( $value as $key => $subvalue ) {
				if ( '' !== $subvalue || isset( $this->choices[''] ) ) {
					$key           = sanitize_key( $key );
					$value[ $key ] = sanitize_text_field( $subvalue );
				}
			}
			return $value;
		}
		return sanitize_text_field( $value );
	}
public function sanitize ( $ value ) { if ( is_array ( $ value ) ) { foreach ( $ value as $ key => $ subvalue ) { if ( '' !== $ subvalue || isset ( $ this -> choices [ '' ] ) ) { $ key = sanitize_key ( $ key ) ; $ value [ $ key ] = sanitize_text_field ( $ subvalue ) ; } } return $ value ; } return sanitize_text_field ( $ value ) ; }
Sanitizes select control values.

@access public
@since 1.0
@param array $value The value.
@return string|array
Sanitizes select control values .