Changeset 11964 for trunk/wp-admin/import/blogware.php
- Timestamp:
- 09/23/2009 10:03:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/blogware.php
r11190 r11964 41 41 wp_import_upload_form("admin.php?import=blogware&step=1"); 42 42 echo '</div>'; 43 } 44 45 function _normalize_tag( $matches ) { 46 return '<' . strtolower( $match[1] ); 43 47 } 44 48 … … 90 94 91 95 // Clean up content 92 $post_content = preg_replace_callback('|<(/?[A-Z]+)|', create_function('$match', 'return "<" . strtolower($match[1]);'), $post_content);96 $post_content = preg_replace_callback('|<(/?[A-Z]+)|', array( &$this, '_normalize_tag' ), $post_content); 93 97 $post_content = str_replace('<br>', '<br />', $post_content); 94 98 $post_content = str_replace('<hr>', '<hr />', $post_content); … … 130 134 131 135 // Clean up content 132 $comment_content = preg_replace_callback('|<(/?[A-Z]+)|', create_function('$match', 'return "<" . strtolower($match[1]);'), $comment_content);136 $comment_content = preg_replace_callback('|<(/?[A-Z]+)|', array( &$this, '_normalize_tag' ), $comment_content); 133 137 $comment_content = str_replace('<br>', '<br />', $comment_content); 134 138 $comment_content = str_replace('<hr>', '<hr />', $comment_content);
Note: See TracChangeset
for help on using the changeset viewer.