﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
4622,Importing Blogger Post Slugs,clazh,,"Hi there,
         Recently a friend wanted to move from blogger to wordpress but he was afraid to do it since after importing Wordpress auto generates the post slugs hence the permalinks change. I hunted around and found a solution. It involves adding just 2 lines of code in the blogger importer. I have blogged about it [http://www.clazh.com/move-from-blogger-to-wordpress-and-maintain-permalinks-and-traffic/   here]

at around line 520. Insert these 2 lines after the call to wp_insert_post;


{{{
preg_match(""/([^\/]+)\.html$/"", $entry->old_permalink ,$matches);
$wpdb->query(""UPDATE $wpdb->posts SET post_name = '"" . $matches[1] . ""' WHERE ID = '$post_id'"");
}}}
",defect (bug),closed,normal,2.9,Import,2.3,normal,fixed,"Blogger, Import, Post Slugs",
