wp-includes/SimplePie/src/Misc.php:333$datastring$inputstring$outputstringstring|false protected static function change_encoding_mbstring(string $data, string $input, string $output) { if ($input === 'windows-949') { $input = 'EUC-KR'; } if ($output === 'windows-949') { $output = 'EUC-KR'; } if ($input === 'Windows-31J') { $input = 'SJIS'; } if ($output === 'Windows-31J') { $output = 'SJIS'; } // Check that the encoding is supported if (!in_array($input, mb_list_encodings())) { return false; } if (@mb_convert_encoding("\x80", 'UTF-16BE', $input) === "\x00\x80") { return false; } // Let's do some conversion if ($return = @mb_convert_encoding($data, $output, $input)) { return $return; } return false; }4 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$data retyped from untyped to string.verified against source$input retyped from untyped to string.verified against source$output retyped from untyped to string.verified against sourcenone to string|false.verified against sourcesrc/wp-includes/SimplePie/src/Misc.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.