Make WordPress Core

Ticket #8840: 8840.diff

File 8840.diff, 939 bytes (added by Denis-de-Bernardy, 17 years ago)
  • wp-admin/import/wordpress.php

     
    300300                                continue;
    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' );
    305306
     
    310311                        else
    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);
    316317                }