Ticket #7813: export.diff
File export.diff, 782 bytes (added by , 16 years ago) |
---|
-
wp-admin/includes/export.php
96 96 * @param string $str String to place in XML CDATA tag. 97 97 */ 98 98 function wxr_cdata($str) { 99 if ( seems_utf8($str) == false )100 $str = utf8_encode($str);101 99 // commented as we do not always want utf-8 100 //if ( seems_utf8($str) == false ) 101 // $str = utf8_encode($str); 102 102 // $str = ent2ncr(wp_specialchars($str)); 103 103 104 mb_convert_encoding($str, strtoupper(get_option('blog_charset'))); 105 104 106 $str = "<![CDATA[$str" . ( ( substr($str, -1) == ']' ) ? ' ' : '') . "]]>"; 105 107 106 108 return $str;