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:
ryan 2007-08-27 15:17:00 +00:00
parent d9793c3e8d
commit 5217cd1838
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ class MT_Import {
echo '<li>';
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_author = $this->checkauthor($post->post_author); //just so that if a post already exists, new users are not created by checkauthor