Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix empty feed after MT import, props hailin, fixes #8944

git-svn-id: http://svn.automattic.com/wordpress/branches/2.7@10429 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
commit 66eaffbe4c521e8fadc9b3ca096d0865fdc31cc8 1 parent 2d4f74d
azaozz authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 wp-admin/import/mt.php
View
6 wp-admin/import/mt.php
@@ -438,8 +438,10 @@ function process_posts() {
$ping->comment_author = $blog;
} else {
// Processing multi-line field, check context.
-
- $line .= "\n";
+
+ if( !empty($line) )
+ $line .= "\n";
+
if ( 'body' == $context ) {
$post->post_content .= $line;
} else if ( 'extended' == $context ) {
Please sign in to comment.
Something went wrong with that request. Please try again.