wp_sanitize_redirect() - WordPress 函数参考中文文档

返回介绍

wp_sanitize_redirect()

发布于 2017-09-11 字数 1224 浏览 888 评论 0

wp_sanitize_redirect( string $location )

Sanitizes a URL for use in a redirect.


描述


参数

$location

(string)
(Required)
The path to redirect to.


返回值

(string) Redirect-sanitized URL.


源代码

File: wp-includes/pluggable.php

function wp_sanitize_redirect($location) {
	$regex = '/
		(
			(?: [\xC2-\xDF][\x80-\xBF]       

更新日志

Version 描述
2.3.0 Introduced.

相关函数

Uses

  • wp-includes/formatting.php:
    _deep_replace()
  • wp-includes/kses.php:
    wp_kses_no_null()

Used By

  • wp-includes/pluggable.php:
    wp_redirect()
  • wp-includes/pluggable.php:
    wp_safe_redirect()

User Contributed Notes

上一篇:wp_salt()

下一篇:wp_save_image()

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!