Changeset 11964 for trunk/wp-admin/import/rss.php
- Timestamp:
- 09/23/2009 10:03:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/rss.php
r11190 r11964 44 44 } 45 45 46 function _normalize_tag( $matches ) { 47 return '<' . strtolower( $match[1] ); 48 } 49 46 50 function get_posts() { 47 51 global $wpdb; … … 104 108 105 109 // Clean up content 106 $post_content = preg_replace_callback('|<(/?[A-Z]+)|', create_function('$match', 'return "<" . strtolower($match[1]);'), $post_content);110 $post_content = preg_replace_callback('|<(/?[A-Z]+)|', array( &$this, '_normalize_tag' ), $post_content); 107 111 $post_content = str_replace('<br>', '<br />', $post_content); 108 112 $post_content = str_replace('<hr>', '<hr />', $post_content);
Note: See TracChangeset
for help on using the changeset viewer.