Changeset 7965 for trunk/wp-admin/import/wordpress.php
- Timestamp:
- 05/20/2008 10:22:21 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/wordpress.php
r7883 r7965 358 358 $post_author = $this->get_tag( $post, 'dc:creator' ); 359 359 360 $post_excerpt = $this->get_tag( $post, 'excerpt:encoded' ); 361 $post_excerpt = preg_replace('|<(/?[A-Z]+)|e', "'<' . strtolower('$1')", $post_excerpt); 362 $post_excerpt = str_replace('<br>', '<br />', $post_excerpt); 363 $post_excerpt = str_replace('<hr>', '<hr />', $post_excerpt); 364 360 365 $post_content = $this->get_tag( $post, 'content:encoded' ); 361 366 $post_content = preg_replace('|<(/?[A-Z]+)|e', "'<' . strtolower('$1')", $post_content); … … 405 410 $post_author = $this->checkauthor($post_author); //just so that if a post already exists, new users are not created by checkauthor 406 411 407 $postdata = compact('post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_ title', 'post_status', 'post_name', 'comment_status', 'ping_status', 'guid', 'post_parent', 'menu_order', 'post_type', 'post_password');412 $postdata = compact('post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_excerpt', 'post_title', 'post_status', 'post_name', 'comment_status', 'ping_status', 'guid', 'post_parent', 'menu_order', 'post_type', 'post_password'); 408 413 if ($post_type == 'attachment') { 409 414 $remote_url = $this->get_tag( $post, 'wp:attachment_url' );
Note: See TracChangeset
for help on using the changeset viewer.