wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



esc_url_raw › WordPress Function

Od2.8.0
Przestarzałyn/a
esc_url_raw ( $url, $protocols = null )
Parametry: (2)
  • (string) $url The URL to be cleaned.
    Wymagane: Tak
  • (string[]) $protocols Optional. An array of acceptable protocols. Defaults to return value of wp_allowed_protocols().
    Wymagane: Nie
    Domyślny: null
Zobacz:
Powrót:
  • (string) The cleaned URL after sanitize_url() is run.
Zdefiniowane na:
Codex:
Dziennik zmian:
  • 6.1.0

Sanitizes a URL for database or redirect usage.

This function is an alias for sanitize_url().


Źródło

function esc_url_raw( $url, $protocols = null ) {
	return sanitize_url( $url, $protocols );
}