Un motore di ricerca WordPress per sviluppatori e autori di temi



sanitize_url ›

Da2.3.1
Deprecato2.8.0
sanitize_url ( $url, $protocols = null )
Parametri: (2)
  • (string) $url The URL to be cleaned.
    Richiesto:
  • (array) $protocols An array of acceptable protocols.
    Richiesto: No
    Default: null
Vedi:
Ritorna:
  • (string) The cleaned URL.
Definito a:
Codex:

Performs esc_url() for database or redirect usage.



Sorgenti

function sanitize_url( $url, $protocols = null ) {
	_deprecated_function( __FUNCTION__, '2.8.0', 'esc_url_raw()' );
	return esc_url_raw( $url, $protocols );
}