From 0bcf97cd842dc29e93aef01e5efb4c6ff5c78a54 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 17 May 2006 21:39:40 +0000 Subject: [PATCH] WP importer fixes from mdawaffe. fixes #2727 git-svn-id: https://develop.svn.wordpress.org/trunk@3776 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/import/wordpress.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/import/wordpress.php b/wp-admin/import/wordpress.php index ac886cf90c..11c9f3efec 100644 --- a/wp-admin/import/wordpress.php +++ b/wp-admin/import/wordpress.php @@ -220,8 +220,8 @@ class WP_Import { $postdata = compact('post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_title', 'post_excerpt', 'post_status', 'comment_status', 'ping_status', 'post_modified', 'post_modified_gmt', 'guid', 'post_parent', 'post_type'); $comment_post_ID = $post_id = wp_insert_post($postdata); // Add categories. - if (0 != count($post_categories)) { - wp_create_categories($post_categories, $post_id); + if (0 != count($categories)) { + wp_create_categories($categories, $post_id); } } @@ -308,4 +308,4 @@ $wp_import = new WP_Import(); register_importer('wordpress', 'WordPress', __('Import posts from a WordPress export file'), array ($wp_import, 'dispatch')); -?> \ No newline at end of file +?>