[wp-trac] Re: [WordPress Trac] #8840: WRX Import does not import category description

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 11 07:14:20 GMT 2009


#8840: WRX Import does not import category description
--------------------------+-------------------------------------------------
 Reporter:  ose           |        Owner:     
     Type:  defect (bug)  |       Status:  new
 Priority:  normal        |    Milestone:  2.8
Component:  Import        |      Version:  2.7
 Severity:  normal        |   Resolution:     
 Keywords:  wrx import    |  
--------------------------+-------------------------------------------------
Comment (by ose):

 It seems like there is an easy patch for this:[[BR]]

 In wp-admin/import/wordpress.php, [[BR]]

 function process_categories() {[[BR]]
 ...[[BR]]
 $category_nicename      = $this->get_tag( $c, 'wp:category_nicename'
 );[[BR]]
 $category_description   = $this->get_tag( $c, 'wp:category_description'
 );[[BR]]
 ...[[BR]]
 catarr = compact('category_nicename', 'category_parent', 'posts_private',
 'links_private', 'posts_private', 'cat_name', 'category_description');

 ...

 I tried this in a local install and it works fine for me by adding the
 extra line and adding category_description to the compact call.


 Can someone please verify and possibly apply this patch?

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8840#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list