Trim before comparison. Props foolswisdom and Nazgul. fixes #4815
git-svn-id: http://svn.automattic.com/wordpress/trunk@5948 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d9793c3e8d
commit
5217cd1838
|
@ -210,7 +210,7 @@ class MT_Import {
|
||||||
echo '<li>';
|
echo '<li>';
|
||||||
printf(__('Importing post <i>%s</i>...'), stripslashes($post->post_title));
|
printf(__('Importing post <i>%s</i>...'), stripslashes($post->post_title));
|
||||||
|
|
||||||
if ( '' != $post->extended )
|
if ( '' != trim( $post->extended ) )
|
||||||
$post->post_content .= "\n<!--more-->\n$post->extended";
|
$post->post_content .= "\n<!--more-->\n$post->extended";
|
||||||
|
|
||||||
$post->post_author = $this->checkauthor($post->post_author); //just so that if a post already exists, new users are not created by checkauthor
|
$post->post_author = $this->checkauthor($post->post_author); //just so that if a post already exists, new users are not created by checkauthor
|
||||||
|
|
Loading…
Reference in New Issue