From a434f1056b59b3663bb79c95eb44b08c908f4c42 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 27 Aug 2007 15:17:00 +0000 Subject: [PATCH] Trim before comparison. Props foolswisdom and Nazgul. fixes #4815 git-svn-id: https://develop.svn.wordpress.org/trunk@5948 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/import/mt.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/import/mt.php b/wp-admin/import/mt.php index 8ec2602418..a043453639 100644 --- a/wp-admin/import/mt.php +++ b/wp-admin/import/mt.php @@ -210,7 +210,7 @@ class MT_Import { echo '
  • '; printf(__('Importing post %s...'), stripslashes($post->post_title)); - if ( '' != $post->extended ) + if ( '' != trim( $post->extended ) ) $post->post_content .= "\n\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