From 71c261f6e6eb705a009935b86b7836e52285e1d2 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Sun, 11 Apr 2004 17:36:45 +0000 Subject: [PATCH] Turn magic quotes runtime off, fix english, normalize newlines going in. git-svn-id: https://develop.svn.wordpress.org/trunk@1059 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/import-mt.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/wp-admin/import-mt.php b/wp-admin/import-mt.php index ff70fd3bf5..1de30d9eb3 100644 --- a/wp-admin/import-mt.php +++ b/wp-admin/import-mt.php @@ -1,5 +1,7 @@ body { font-family: Georgia, "Times New Roman", Times, serif; - margin-left: 15%; - margin-right: 15%; + margin-left: 20%; + margin-right: 20%; } #logo { margin: 0; @@ -41,14 +43,14 @@ switch($step) { case 0: ?> -

Howdy! We're about to begin the process to import all of your Movable Type entries into WordPress. It's pretty easy, but it can possible take a little bit of time so be patient. Before we get started, you need to edit this file (import-mt.php) and change one line so we know where to find your MT export file. Look for the line that says:

+

Howdy! We’re about to begin the process to import all of your Movable Type entries into WordPress. Before we get started, you need to edit this file (import-mt.php) and change one line so we know where to find your MT export file. To make this easy put the import file into the wp-admin directory. Look for the line that says:

define('MTEXPORT', '');

and change it to

-

define('MTEXPORT', '/path/to/your/import.txt');

+

define('MTEXPORT', 'import.txt');

You have to do this manually for security reasons.

If you've done that and you’re all ready, let's go! Remember that the import process may take a minute or so if you have a large number of entries and comments. Think of all the rebuilding time you'll be saving once it's done. :)

On our test system, importing a blog of 1189 entries and about a thousand comments took 18 seconds.

-

The importer is smart enough not to import duplicates, so you can run this multiple times without worry if for whatever reason it doesn't finish.

+

The importer is smart enough not to import duplicates, so you can run this multiple times without worry if—for whatever reason—it doesn't finish.

"; foreach ($posts as $post) { if ('' != trim($post)) { ++$i; unset($post_categories); - $post = preg_replace("/(\r\n|\n|\r)/", "\n", $post); echo "
  • Importing post... "; // Take the pings out first