Don't pass by reference. Props kamiyeye. fixes #9994
git-svn-id: https://develop.svn.wordpress.org/trunk@11518 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
230a4bc6f0
commit
95df8d05fd
|
@ -187,7 +187,7 @@ function wpautop($pee, $br = 1) {
|
||||||
* @param string $str The string to be checked
|
* @param string $str The string to be checked
|
||||||
* @return bool True if $str fits a UTF-8 model, false otherwise.
|
* @return bool True if $str fits a UTF-8 model, false otherwise.
|
||||||
*/
|
*/
|
||||||
function seems_utf8(&$str) {
|
function seems_utf8($str) {
|
||||||
$length = strlen($str);
|
$length = strlen($str);
|
||||||
for ($i=0; $i < $length; $i++) {
|
for ($i=0; $i < $length; $i++) {
|
||||||
$c = ord($str[$i]);
|
$c = ord($str[$i]);
|
||||||
|
|
Loading…
Reference in New Issue