From c5ce63e64ddbd11131073ea6a25cba1563bc0f64 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 13 May 2009 23:23:26 +0000 Subject: [PATCH] Import category descriptions. Props Denis-de-Bernardy. fixes #8840 git-svn-id: https://develop.svn.wordpress.org/trunk@11321 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/import/wordpress.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/import/wordpress.php b/wp-admin/import/wordpress.php index 28e85d0470..99903487f7 100644 --- a/wp-admin/import/wordpress.php +++ b/wp-admin/import/wordpress.php @@ -300,6 +300,7 @@ class WP_Import { continue; $category_nicename = $this->get_tag( $c, 'wp:category_nicename' ); + $category_description = $this->get_tag( $c, 'wp:category_description' ); $posts_private = (int) $this->get_tag( $c, 'wp:posts_private' ); $links_private = (int) $this->get_tag( $c, 'wp:links_private' ); @@ -310,7 +311,7 @@ class WP_Import { else $category_parent = category_exists($parent); - $catarr = compact('category_nicename', 'category_parent', 'posts_private', 'links_private', 'posts_private', 'cat_name'); + $catarr = compact('category_nicename', 'category_parent', 'posts_private', 'links_private', 'posts_private', 'cat_name', 'category_description'); $cat_ID = wp_insert_category($catarr); }