Changeset 3769 for trunk/wp-admin/import/mt.php
- Timestamp:
- 05/10/2006 08:34:17 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/mt.php
r3749 r3769 12 12 function header() { 13 13 echo '<div class="wrap">'; 14 echo '<h2>'.__('Import Movable Type ').'</h2>';14 echo '<h2>'.__('Import Movable Type and Typepad').'</h2>'; 15 15 } 16 16 … … 149 149 foreach ($authors as $author) { 150 150 ++ $j; 151 echo '<li> <i>'.$author.'</i><br />'.'<input type="text" value="'.$author.'" name="'.'user[]'.'" maxlength="30">';151 echo '<li>Current author: <strong>'.$author.'</strong><br />'.'Create user <input type="text" value="'.$author.'" name="'.'user[]'.'" maxlength="30"> <br /> or map to existing '; 152 152 $this->users_form($j); 153 153 echo '</li>'; … … 163 163 $file = wp_import_handle_upload(); 164 164 if ( isset($file['error']) ) { 165 echo $file['error']; 165 $this->header(); 166 echo '<p>Sorry, there has been an error.</p>'; 167 echo '<p><strong>' . $file['error'] . '</strong></p>'; 168 $this->footer(); 166 169 return; 167 170 } … … 332 335 } 333 336 if ( $num_comments ) 334 printf(__(' (%s comments)'), $num_comments);337 printf(__(' (%s comments)'), $num_comments); 335 338 336 339 // Finally the pings … … 380 383 } 381 384 if ( $num_pings ) 382 printf(__(' (%s pings)'), $num_pings);385 printf(__(' (%s pings)'), $num_pings); 383 386 384 387 echo "</li>"; … … 395 398 function import() { 396 399 $this->id = (int) $_GET['id']; 400 397 401 $this->file = get_attached_file($this->id); 398 402 $this->get_authors_from_post(); … … 427 431 $mt_import = new MT_Import(); 428 432 429 register_importer('mt', 'Movable Type ', __('Import posts and comments from your Movable Typeblog'), array ($mt_import, 'dispatch'));433 register_importer('mt', 'Movable Type and Typepad', __('Imports <strong>posts and comments</strong> from your Movable Type or Typepad blog'), array ($mt_import, 'dispatch')); 430 434 ?>
Note: See TracChangeset
for help on using the changeset viewer.