Changeset 12985 for trunk/wp-admin/import/rss.php
- Timestamp:
- 02/06/2010 07:19:25 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/import/rss.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/rss.php
r12789 r12985 29 29 function footer() { 30 30 echo '</div>'; 31 }32 33 function unhtmlentities($string) { // From php.net for < 4.3 compat34 $trans_tbl = get_html_translation_table(HTML_ENTITIES);35 $trans_tbl = array_flip($trans_tbl);36 return strtr($string, $trans_tbl);37 31 } 38 32 … … 88 82 $cat_index = 0; 89 83 foreach ($categories as $category) { 90 $categories[$cat_index] = $wpdb->escape( $this->unhtmlentities($category));84 $categories[$cat_index] = $wpdb->escape( html_entity_decode( $category ) ); 91 85 $cat_index++; 92 86 } … … 104 98 // This is for feeds that put content in description 105 99 preg_match('|<description>(.*?)</description>|is', $post, $post_content); 106 $post_content = $wpdb->escape( $this->unhtmlentities(trim($post_content[1])));100 $post_content = $wpdb->escape( html_entity_decode( trim( $post_content[1] ) ) ); 107 101 } 108 102
Note: See TracChangeset
for help on using the changeset viewer.