_wp_sanitize_utf8_in_redirect() – URL encode UTF-8 characters in a URL.
You appear to be a bot. Output may be restricted
Description
URL encodes UTF-8 characters in a URL.
Usage
$string = _wp_sanitize_utf8_in_redirect( $matches );
Parameters
- $matches
- ( array ) required – RegEx matches against the redirect location.
Returns
string URL-encoded version of the first RegEx match.
Source
File name: wordpress/wp-includes/pluggable.php
Lines:
1 to 3 of 3
function _wp_sanitize_utf8_in_redirect( $matches ) { return urlencode( $matches[0] ); }