summaryrefslogtreecommitdiffstats
path: root/wp-admin/import/mt.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-admin/import/mt.php')
-rw-r--r--wp-admin/import/mt.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/wp-admin/import/mt.php b/wp-admin/import/mt.php
index b86ae33..d484ba7 100644
--- a/wp-admin/import/mt.php
+++ b/wp-admin/import/mt.php
@@ -11,7 +11,7 @@ class MT_Import {
function header() {
echo '<div class="wrap">';
- echo '<h2>'.__('Import Movable Type and Typepad').'</h2>';
+ echo '<h2>'.__('Import Movable Type and TypePad').'</h2>';
}
function footer() {
@@ -140,7 +140,10 @@ class MT_Import {
function select_authors() {
$file = wp_import_handle_upload();
if ( isset($file['error']) ) {
- echo $file['error'];
+ $this->header();
+ echo '<p>'.__('Sorry, there has been an error').'.</p>';
+ echo '<p><strong>' . $file['error'] . '</strong></p>';
+ $this->footer();
return;
}
$this->file = $file['file'];
@@ -172,7 +175,7 @@ class MT_Import {
// We want the excerpt
preg_match("|-----\nEXCERPT:(.*)|s", $post, $excerpt);
- $excerpt = $wpdb->escape(trim($excerpt[1]));
+ $post_excerpt = $wpdb->escape(trim($excerpt[1]));
$post = preg_replace("|(-----\nEXCERPT:.*)|s", '', $post);
// We're going to put extended body into main body with a more tag
@@ -309,7 +312,7 @@ class MT_Import {
}
}
if ( $num_comments )
- printf(__(' (%s comments)'), $num_comments);
+ printf(' '.__('(%s comments)'), $num_comments);
// Finally the pings
// fix the double newline on the first one
@@ -357,7 +360,7 @@ class MT_Import {
}
}
if ( $num_pings )
- printf(__(' (%s pings)'), $num_pings);
+ printf(' '.__('(%s pings)'), $num_pings);
echo "</li>";
}
@@ -405,5 +408,5 @@ class MT_Import {
$mt_import = new MT_Import();
-register_importer('mt', __('Movable Type and Typepad'), __('Imports <strong>posts and comments</strong> from your Movable Type or Typepad blog'), array ($mt_import, 'dispatch'));
+register_importer('mt', __('Movable Type and TypePad'), __('Imports <strong>posts and comments</strong> from your Movable Type or TypePad blog'), array ($mt_import, 'dispatch'));
?>