wp-includes/SimplePie/src/IRI.php:988Convert an IRI to a URI (or parts thereof)
$stringstringstring public function to_uri(string $string) { static $non_ascii; if (!$non_ascii) { $non_ascii = implode('', range("\x80", "\xFF")); } $position = 0; $strlen = strlen($string); while (($position += strcspn($string, $non_ascii, $position)) < $strlen) { $string = substr_replace($string, sprintf('%%%02X', ord($string[$position])), $position, 1); $position += 3; $strlen += 2; } return $string; }One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$string retyped from untyped to string.verified against sourcesrc/wp-includes/SimplePie/src/IRI.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.