Make WordPress Core


Ignore:
Timestamp:
05/13/2009 11:23:26 PM (17 years ago)
Author:
ryan
Message:

Import category descriptions. Props Denis-de-Bernardy. fixes #8840

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/wordpress.php

    r11204 r11321  
    301301
    302302                        $category_nicename      = $this->get_tag( $c, 'wp:category_nicename' );
     303                        $category_description = $this->get_tag( $c, 'wp:category_description' );
    303304                        $posts_private          = (int) $this->get_tag( $c, 'wp:posts_private' );
    304305                        $links_private          = (int) $this->get_tag( $c, 'wp:links_private' );
     
    311312                                $category_parent = category_exists($parent);
    312313
    313                         $catarr = compact('category_nicename', 'category_parent', 'posts_private', 'links_private', 'posts_private', 'cat_name');
     314                        $catarr = compact('category_nicename', 'category_parent', 'posts_private', 'links_private', 'posts_private', 'cat_name', 'category_description');
    314315
    315316                        $cat_ID = wp_insert_category($catarr);
Note: See TracChangeset for help on using the changeset viewer.