mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 16:43:06 +01:00
Import category descriptions. Props Denis-de-Bernardy. fixes #8840
git-svn-id: https://develop.svn.wordpress.org/trunk@11321 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c662eed706
commit
c5ce63e64d
@ -300,6 +300,7 @@ class WP_Import {
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
$category_nicename = $this->get_tag( $c, 'wp:category_nicename' );
|
$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' );
|
$posts_private = (int) $this->get_tag( $c, 'wp:posts_private' );
|
||||||
$links_private = (int) $this->get_tag( $c, 'wp:links_private' );
|
$links_private = (int) $this->get_tag( $c, 'wp:links_private' );
|
||||||
|
|
||||||
@ -310,7 +311,7 @@ class WP_Import {
|
|||||||
else
|
else
|
||||||
$category_parent = category_exists($parent);
|
$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);
|
$cat_ID = wp_insert_category($catarr);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user