Sanitizes a single src value for a font face.
Parameters
$value
stringrequired- Font face src that is a URL or the key for a $_FILES array item.
Source
protected function sanitize_src( $value ) {
$value = ltrim( $value );
return false === wp_http_validate_url( $value ) ? (string) $value : sanitize_url( $value );
}
Changelog
Version | Description |
---|---|
6.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.