Make WordPress Core

Ticket #5105: formatting.php.diff

File formatting.php.diff, 620 bytes (added by richcon, 18 years ago)

Patch

  • wp-includes/formatting.php

    old new  
    2525
    2626       for ( $i = 0; $i < $stop; $i++ ) {
    2727               $curl = $textarr[$i];
    28 
    29                if (isset($curl{0}) && '<' != $curl{0} && $next) { // If it's not a tag
     28
     29               if ($curl && '<' != $curl{0} && $next) { // If it's not a tag
    3030                       // static strings
    3131                       $curl = str_replace($static_characters, $static_replacements, $curl);
    3232                       // regular expressions