WordPress开发者和主题制作者的搜索引擎



esc_url_raw ›

Since2.8.0
已弃用n/a
esc_url_raw ( $url, $protocols = null )
参数: (2)
  • (string) $url The URL to be cleaned.
    Required: Yes
  • (array) $protocols An array of acceptable protocols.
    Required: No
    默认: null
返回:
  • (string) The cleaned URL.
定义在:
文档:

Performs esc_url() for database usage.



源码

function esc_url_raw( $url, $protocols = null ) {
	return esc_url( $url, $protocols, 'db' );
}