Fix empty feed after MT import, props hailin, fixes #8944 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10430 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
038b556b23
commit
0c65134b61
|
@ -438,8 +438,10 @@ class MT_Import {
|
||||||
$ping->comment_author = $blog;
|
$ping->comment_author = $blog;
|
||||||
} else {
|
} else {
|
||||||
// Processing multi-line field, check context.
|
// Processing multi-line field, check context.
|
||||||
|
|
||||||
$line .= "\n";
|
if( !empty($line) )
|
||||||
|
$line .= "\n";
|
||||||
|
|
||||||
if ( 'body' == $context ) {
|
if ( 'body' == $context ) {
|
||||||
$post->post_content .= $line;
|
$post->post_content .= $line;
|
||||||
} else if ( 'extended' == $context ) {
|
} else if ( 'extended' == $context ) {
|
||||||
|
|
Loading…
Reference in New Issue