Ticket #5555: wpexcerpt.patch
| File wpexcerpt.patch, 1.4 kB (added by kartik_subbarao, 5 months ago) |
|---|
-
wp-admin/export.php
old new 222 222 223 223 <guid isPermaLink="false"><?php the_guid(); ?></guid> 224 224 <description></description> 225 <excerpt:encoded><![CDATA[<?php echo $post->post_excerpt ?>]]></excerpt:encoded> 225 226 <content:encoded><![CDATA[<?php echo $post->post_content ?>]]></content:encoded> 226 227 <wp:post_id><?php echo $post->ID; ?></wp:post_id> 227 228 <wp:post_date><?php echo $post->post_date; ?></wp:post_date> -
wp-admin/import/wordpress.php
old new 294 294 $guid = $this->get_tag( $post, 'guid' ); 295 295 $post_author = $this->get_tag( $post, 'dc:creator' ); 296 296 297 $post_excerpt = $this->get_tag( $post, 'excerpt:encoded' ); 298 $post_excerpt = preg_replace('|<(/?[A-Z]+)|e', "'<' . strtolower('$1')", $post_excerpt); 299 $post_excerpt = str_replace('<br>', '<br />', $post_excerpt); 300 $post_excerpt = str_replace('<hr>', '<hr />', $post_excerpt); 301 297 302 $post_content = $this->get_tag( $post, 'content:encoded' ); 298 303 $post_content = preg_replace('|<(/?[A-Z]+)|e', "'<' . strtolower('$1')", $post_content); 299 304 $post_content = str_replace('<br>', '<br />', $post_content);
