Trim before comparison. Props foolswisdom and Nazgul. fixes #4815

git-svn-id: https://develop.svn.wordpress.org/trunk@5948 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-08-27 15:17:00 +00:00
parent 7d95821088
commit a434f1056b
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