Don't pass by reference. Props kamiyeye. fixes #9994
git-svn-id: http://svn.automattic.com/wordpress/trunk@11518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cf7300c795
commit
c7d287c45a
|
@ -187,7 +187,7 @@ function wpautop($pee, $br = 1) {
|
|||
* @param string $str The string to be checked
|
||||
* @return bool True if $str fits a UTF-8 model, false otherwise.
|
||||
*/
|
||||
function seems_utf8(&$str) {
|
||||
function seems_utf8($str) {
|
||||
$length = strlen($str);
|
||||
for ($i=0; $i < $length; $i++) {
|
||||
$c = ord($str[$i]);
|
||||
|
|
Loading…
Reference in New Issue