Make WordPress Core

Ticket #11219: 11219.2.diff

File 11219.2.diff, 624 bytes (added by ryan, 14 years ago)
  • wp-includes/class-simplepie.php

     
    94409440                {
    94419441                        return $return;
    94429442                }
     9443                // If unable to convert due to missing extensions, return filtered UTF-8 if both input and output are UTF-8.
     9444                elseif ( !function_exists('mb_convert_encoding') &&  !function_exists('iconv') && ($input == $output) && ($output === 'UTF-8') )
     9445                {
     9446                        return SimplePie_Misc::utf8_bad_replace($data);
     9447                }
    94439448                // If we can't do anything, just fail
    94449449                else
    94459450                {