Changeset 7326
- Timestamp:
- 03/15/2008 11:16:28 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/mt.php
r7104 r7326 24 24 <div class="narrow"> 25 25 <p><?php _e('Howdy! We’re about to begin importing all of your Movable Type or Typepad entries into WordPress. To begin, either choose a file to upload and click "Upload file and import," or use FTP to upload your MT export file as <code>mt-export.txt</code> in your <code>/wp-content/</code> directory and then click "Import mt-export.txt"'); ?></p> 26 26 27 <?php wp_import_upload_form( add_query_arg('step', 1) ); ?> 27 28 <form method="post" action="<?php echo add_query_arg('step', 1); ?>" class="import-upload-form"> 29 28 30 <?php wp_nonce_field('import-upload'); ?> 29 31 <p> … … 222 224 if ( 0 != count($post->categories) ) { 223 225 wp_create_categories($post->categories, $post_id); 226 } 227 228 // Add tags or keywords 229 if ( 1 < strlen($post->post_keywords) ) { 230 // Keywords exist. 231 printf(__('<br />Adding tags <i>%s</i>...'), stripslashes($post->post_keywords)); 232 wp_add_post_tags($post_id, $post->post_keywords); 224 233 } 225 234 } … … 397 406 } else if ( 'excerpt' == $context ) { 398 407 $post->post_excerpt .= $line; 408 } else if ( 'keywords' == $context ) { 409 $post->post_keywords .= $line; 399 410 } else if ( 'comment' == $context ) { 400 411 $comment->comment_content .= $line;
Note: See TracChangeset
for help on using the changeset viewer.