LJ importer tweaks.

git-svn-id: http://svn.automattic.com/wordpress/trunk@3405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-01-05 05:35:09 +00:00
parent 778923ceb1
commit aeb76a3a42
1 changed files with 5 additions and 4 deletions

View File

@ -67,8 +67,8 @@ class LJ_Import {
printf(__('Post <i>%s</i> already exists.'), stripslashes($post_title)); printf(__('Post <i>%s</i> already exists.'), stripslashes($post_title));
} else { } else {
printf(__('Importing post <i>%s</i>...'), stripslashes($post_title)); printf(__('Importing post <i>%s</i>...'), stripslashes($post_title));
$post = compact('post_author', 'post_date', 'post_content', 'post_title', 'post_status'); $postdata = compact('post_author', 'post_date', 'post_content', 'post_title', 'post_status');
$post_id = wp_insert_post($post); $post_id = wp_insert_post($postdata);
if (!$post_id) { if (!$post_id) {
_e("Couldn't get post ID"); _e("Couldn't get post ID");
echo '</li>'; echo '</li>';
@ -113,9 +113,10 @@ class LJ_Import {
} }
} }
} }
if ( $num_comments ) if ( $num_comments ) {
echo ' ';
printf(__('(%s comments)'), $num_comments); printf(__('(%s comments)'), $num_comments);
}
echo '</li>'; echo '</li>';
flush(); flush();
ob_flush(); ob_flush();