From 7ffb664afe8604f337c8087e8b9c9f25a434ca88 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 5 Jan 2006 05:35:09 +0000 Subject: [PATCH] LJ importer tweaks. git-svn-id: https://develop.svn.wordpress.org/trunk@3405 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/import/livejournal.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/wp-admin/import/livejournal.php b/wp-admin/import/livejournal.php index bc6bb91231..e8c48c4ad9 100644 --- a/wp-admin/import/livejournal.php +++ b/wp-admin/import/livejournal.php @@ -67,8 +67,8 @@ class LJ_Import { printf(__('Post %s already exists.'), stripslashes($post_title)); } else { printf(__('Importing post %s...'), stripslashes($post_title)); - $post = compact('post_author', 'post_date', 'post_content', 'post_title', 'post_status'); - $post_id = wp_insert_post($post); + $postdata = compact('post_author', 'post_date', 'post_content', 'post_title', 'post_status'); + $post_id = wp_insert_post($postdata); if (!$post_id) { _e("Couldn't get post ID"); echo ''; @@ -113,9 +113,10 @@ class LJ_Import { } } } - if ( $num_comments ) + if ( $num_comments ) { + echo ' '; printf(__('(%s comments)'), $num_comments); - + } echo ''; flush(); ob_flush();