From 8cf6fe9af217103f649aeeeb33ea220b9a37aec1 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sat, 24 Jan 2009 12:24:57 +0000 Subject: [PATCH] Fix empty feed after MT import, props hailin, fixes #8944 for trunk git-svn-id: https://develop.svn.wordpress.org/trunk@10430 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/import/mt.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-admin/import/mt.php b/wp-admin/import/mt.php index bb6868cddc..48d4de3b69 100644 --- a/wp-admin/import/mt.php +++ b/wp-admin/import/mt.php @@ -438,8 +438,10 @@ class MT_Import { $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 ) {