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:
parent
9fd8865512
commit
8cf6fe9af2
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user