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