*** wordpress/wp-admin/import-mt.php	Mon May 17 06:40:23 2004
--- blog/wp-admin/import-mt.php	Wed May 26 13:36:36 2004
***************
*** 1,5 ****
  <?php
! define('MTEXPORT', '');// enter the relative path of the import.txt file containing the mt entries. If the file is called import.txt and it is /wp-admin, then this line
  //should be define('MTEXPORT', 'import.txt');
  
  if (!file_exists('../wp-config.php')) die("There doesn't seem to be a wp-config.php file. You must install WordPress before you import any entries.");
--- 1,5 ----
  <?php
! define('MTEXPORT', 'import-utf8.txt');// enter the relative path of the import.txt file containing the mt entries. If the file is called import.txt and it is /wp-admin, then this line
  //should be define('MTEXPORT', 'import.txt');
  
  if (!file_exists('../wp-config.php')) die("There doesn't seem to be a wp-config.php file. You must install WordPress before you import any entries.");
***************
*** 268,273 ****
--- 268,276 ----
  			default:
  //				echo "\n$key: $value";
  				break;
+            case 'ID':
+ 		$post_id = $value;
+                 break;
          } // end switch
  	} // End foreach
  
***************
*** 277,285 ****
  	} else {
  		$post_author = checkauthor($post_author);//just so that if a post already exists, new users are not created by checkauthor
  	    $wpdb->query("INSERT INTO $tableposts (
! 			post_author, post_date, post_date_gmt, post_content, post_title, post_excerpt,  post_status, comment_status, ping_status, post_name, post_modified, post_modified_gmt)
  			VALUES 
! 			('$post_author', '$post_date', '$post_date_gmt', '$post_content', '$post_title', '$excerpt', '$post_status', '$comment_status', '$ping_status', '$post_name','$post_date', '$post_date_gmt')");
  		$post_id = $wpdb->get_var("SELECT ID FROM $tableposts WHERE post_title = '$post_title' AND post_date = '$post_date'");
  		if (0 != count($post_categories)) {
  			foreach ($post_categories as $post_category) {
--- 280,288 ----
  	} else {
  		$post_author = checkauthor($post_author);//just so that if a post already exists, new users are not created by checkauthor
  	    $wpdb->query("INSERT INTO $tableposts (
! 			ID, post_author, post_date, post_date_gmt, post_content, post_title, post_excerpt,  post_status, comment_status, ping_status, post_name, post_modified, post_modified_gmt)
  			VALUES 
! 			('$post_id','$post_author', '$post_date', '$post_date_gmt', '$post_content', '$post_title', '$excerpt', '$post_status', '$comment_status', '$ping_status', '$post_name','$post_date', '$post_date_gmt')");
  		$post_id = $wpdb->get_var("SELECT ID FROM $tableposts WHERE post_title = '$post_title' AND post_date = '$post_date'");
  		if (0 != count($post_categories)) {
  			foreach ($post_categories as $post_category) {

