Ticket #28162: 28162.patch
File 28162.patch, 519 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/formatting.php
410 410 * @return bool True if $str fits a UTF-8 model, false otherwise. 411 411 */ 412 412 function seems_utf8($str) { 413 mbstring_binary_safe_encoding(); 413 414 $length = strlen($str); 415 reset_mbstring_encoding(); 414 416 for ($i=0; $i < $length; $i++) { 415 417 $c = ord($str[$i]); 416 418 if ($c < 0x80) $n = 0; # 0bbbbbbb