diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-02-14 16:56:46 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-02-14 16:56:46 +0000 |
| commit | 6a5b25251eb16dc8da58816eb41e806197fe8a43 (patch) | |
| tree | 714721e87986d7a254175b4a70f76a3a591e0ffb /wp-inst/wp-admin/import/mt.php | |
| parent | 39854b3d3a80e4ac2bfee92a4b1210852baa7091 (diff) | |
WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@525 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-admin/import/mt.php')
| -rw-r--r-- | wp-inst/wp-admin/import/mt.php | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/wp-inst/wp-admin/import/mt.php b/wp-inst/wp-admin/import/mt.php index 3a89d7b..08bd343 100644 --- a/wp-inst/wp-admin/import/mt.php +++ b/wp-inst/wp-admin/import/mt.php @@ -30,9 +30,8 @@ class MT_Import { function users_form($n) { global $wpdb, $testing; - $users = get_users_of_blog(); + $users = get_users_of_blog($wpdb->blogid); ?><select name="userselect[<?php echo $n; ?>]"> - <option value="#NONE#">- Select -</option> <?php @@ -133,10 +132,11 @@ class MT_Import { } function mt_authors_form() { + $this->header(); ?> +<h2><?php _e('Select Authors'); ?></h2> <p><?php _e('To make it easier for you to edit and save the imported posts and drafts, you may want to change the name of the author of the posts. For example, you may want to import all the entries as <code>admin</code>s entries.'); ?></p> -<p><?php _e('Below, you can see the names of the authors of the MovableType posts in <i>italics</i>. For each of these names, you can either pick an author in your WordPress installation from the menu, or enter a name for the author in the textbox.'); ?></p> -<p><?php _e('If a new user is created by WordPress, the password will be set, by default, to "changeme". Quite suggestive, eh? ;)'); ?></p> +<p><?php _e('Below, you can see the names of the authors of the MovableType posts in <i>italics</i>. For each of these names, pick an author from your blog from the menu'); ?></p> <?php @@ -146,7 +146,7 @@ class MT_Import { $j = -1; foreach ($authors as $author) { ++ $j; - echo '<li><i>'.$author.'</i><br />'.'<input type="text" value="'.$author.'" name="'.'user[]'.'" maxlength="30">'; + echo '<li><i>'.$author.'</i><br />'; $this->users_form($j); echo '</li>'; } @@ -156,8 +156,13 @@ class MT_Import { echo '</ol>'; flush(); + $this->footer(); +?> +<?php } + + function select_authors() { $file = wp_import_handle_upload(); if ( isset($file['error']) ) { @@ -173,6 +178,7 @@ class MT_Import { function process_posts() { global $wpdb; + $this->header(); $i = -1; echo "<ol>"; foreach ($this->posts as $post) { @@ -379,7 +385,7 @@ class MT_Import { } if ( $num_pings ) printf(__('(%s pings)'), $num_pings); - + echo "</li>"; } flush(); @@ -390,6 +396,7 @@ class MT_Import { wp_import_cleanup($this->id); echo '<h3>'.sprintf(__('All done. <a href="%s">Have fun!</a>'), get_option('home')).'</h3>'; + $this->footer(); } function import() { @@ -420,11 +427,11 @@ class MT_Import { } function MT_Import() { - // Nothing. + // Nothing. } } $mt_import = new MT_Import(); -register_importer('mt', 'Movable Type', __('Import posts and comments from your Movable Type blog'), array ($mt_import, 'dispatch')); +register_importer('mt', 'Movable Type / Typepad', __('Import posts and comments from your Movable Type or Typepad blog from their export file.'), array ($mt_import, 'dispatch')); ?> |
