WordPress.org

Make WordPress Core

Ticket #9994: 9994.diff

File 9994.diff, 479 bytes (added by ryan, 5 years ago)
  • wp-includes/formatting.php

     
    187187 * @param string $str The string to be checked 
    188188 * @return bool True if $str fits a UTF-8 model, false otherwise. 
    189189 */ 
    190 function seems_utf8(&$str) { 
     190function seems_utf8($str) { 
    191191        $length = strlen($str); 
    192192        for ($i=0; $i < $length; $i++) { 
    193193                $c = ord($str[$i]);