wp_cache_sanitize_value()
No Hooks.
Returns
null. Nothing (null).
Usage
wp_cache_sanitize_value( $text, $array );
- $text(required)
- .
- $array(required) (passed by reference — &)
- .
wp_cache_sanitize_value() wp cache sanitize value code WPSCache 3.1.1
function wp_cache_sanitize_value($text, & $array) {
$text = esc_html(strip_tags($text));
$array = preg_split( '/[\s,]+/', rtrim( $text ) );
$text = var_export($array, true);
$text = preg_replace('/[\s]+/', ' ', $text);
return $text;
}