diff --git a/wp-admin/import/mt.php b/wp-admin/import/mt.php index 282bae3ef3..1f575fe897 100644 --- a/wp-admin/import/mt.php +++ b/wp-admin/import/mt.php @@ -23,8 +23,10 @@ class MT_Import { ?>

mt-export.txt in your /wp-content/ directory and then click "Import mt-export.txt"'); ?>

+
+

@@ -222,6 +224,13 @@ class MT_Import { if ( 0 != count($post->categories) ) { wp_create_categories($post->categories, $post_id); } + + // Add tags or keywords + if ( 1 < strlen($post->post_keywords) ) { + // Keywords exist. + printf(__('
Adding tags %s...'), stripslashes($post->post_keywords)); + wp_add_post_tags($post_id, $post->post_keywords); + } } $num_comments = 0; @@ -396,6 +405,8 @@ class MT_Import { $post->extended .= $line; } else if ( 'excerpt' == $context ) { $post->post_excerpt .= $line; + } else if ( 'keywords' == $context ) { + $post->post_keywords .= $line; } else if ( 'comment' == $context ) { $comment->comment_content .= $line; } else if ( 'ping' == $context ) {