Changes from trunk/wp-admin/import/wordpress.php at r10157 to branches/2.7/wp-admin/import/wordpress.php at r10392
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.7/wp-admin/import/wordpress.php
r10157 r10392 382 382 383 383 $post_excerpt = $this->get_tag( $post, 'excerpt:encoded' ); 384 $post_excerpt = preg_replace ('|<(/?[A-Z]+)|e', "'<' . strtolower('$1')", $post_excerpt);384 $post_excerpt = preg_replace_callback('|<(/?[A-Z]+)|', create_function('$match', 'return "<" . strtolower($match[1]);'), $post_excerpt); 385 385 $post_excerpt = str_replace('<br>', '<br />', $post_excerpt); 386 386 $post_excerpt = str_replace('<hr>', '<hr />', $post_excerpt); 387 387 388 388 $post_content = $this->get_tag( $post, 'content:encoded' ); 389 $post_content = preg_replace ('|<(/?[A-Z]+)|e', "'<' . strtolower('$1')", $post_content);389 $post_content = preg_replace_callback('|<(/?[A-Z]+)|', create_function('$match', 'return "<" . strtolower($match[1]);'), $post_content); 390 390 $post_content = str_replace('<br>', '<br />', $post_content); 391 391 $post_content = str_replace('<hr>', '<hr />', $post_content);
Note: See TracChangeset
for help on using the changeset viewer.