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



_wp_sanitize_utf8_in_redirect ›

Since4.2.0
已弃用n/a
_wp_sanitize_utf8_in_redirect ( $matches )
访问:
  • private
参数:
  • (array) $matches RegEx matches against the redirect location.
    Required: Yes
查看:
返回:
  • (string) URL-encoded version of the first RegEx match.
定义在:
文档:

URL encode UTF-8 characters in a URL.



源码

function _wp_sanitize_utf8_in_redirect( $matches ) {
		return urlencode( $matches[0] );
	}
endif;

if ( ! function_exists( 'wp_safe_redirect' ) ) :