Ticket #9805: 9805.diff
File 9805.diff, 2.0 KB (added by , 12 years ago) |
---|
-
wp-admin/import/blogware.php
29 29 echo '</div>'; 30 30 } 31 31 32 function unhtmlentities($string) { // From php.net for < 4.3 compat 32 function unhtmlentities($string) { // From MoxieCode's GoogleSpell plugin 33 $string = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $string); 34 $string = preg_replace('~&#([0-9]+);~e', 'chr(\\1)', $string); 35 33 36 $trans_tbl = get_html_translation_table(HTML_ENTITIES); 34 37 $trans_tbl = array_flip($trans_tbl); 38 35 39 return strtr($string, $trans_tbl); 36 40 } 37 41 -
wp-admin/import/rss.php
30 30 echo '</div>'; 31 31 } 32 32 33 function unhtmlentities($string) { // From php.net for < 4.3 compat 33 function unhtmlentities($string) { // From MoxieCode's GoogleSpell plugin 34 $string = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $string); 35 $string = preg_replace('~&#([0-9]+);~e', 'chr(\\1)', $string); 36 34 37 $trans_tbl = get_html_translation_table(HTML_ENTITIES); 35 38 $trans_tbl = array_flip($trans_tbl); 39 36 40 return strtr($string, $trans_tbl); 37 41 } 38 42 -
wp-admin/import/wordpress.php
42 42 echo '</div>'; 43 43 } 44 44 45 function unhtmlentities($string) { // From php.net for < 4.3 compat 45 function unhtmlentities($string) { // From MoxieCode's GoogleSpell plugin 46 $string = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $string); 47 $string = preg_replace('~&#([0-9]+);~e', 'chr(\\1)', $string); 48 46 49 $trans_tbl = get_html_translation_table(HTML_ENTITIES); 47 50 $trans_tbl = array_flip($trans_tbl); 51 48 52 return strtr($string, $trans_tbl); 49 53 } 50 54