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
This commit is contained in:
Andrew Ozz 2009-01-24 12:24:57 +00:00
parent 9fd8865512
commit 8cf6fe9af2
1 changed files with 4 additions and 2 deletions

View File

@ -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 ) {