From 98874495fb4936eca287efe6e7709de1d751eeb8 Mon Sep 17 00:00:00 2001 From: matt Date: Fri, 25 Feb 2005 23:09:14 +0000 Subject: [PATCH] Patch from Carthik git-svn-id: http://svn.automattic.com/wordpress/trunk@2383 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/import-mt.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/import-mt.php b/wp-admin/import-mt.php index 90449f2d15..f4bb2ca039 100644 --- a/wp-admin/import-mt.php +++ b/wp-admin/import-mt.php @@ -68,7 +68,7 @@ set_magic_quotes_runtime(0); $importdata = file(MTEXPORT); // Read the file into an array $importdata = implode('', $importdata); // squish it $importdata = preg_replace("/(\r\n|\n|\r)/", "\n", $importdata); -$importdata = preg_replace("/--------\nAUTHOR/", "--MT-ENTRY--\nAUTHOR", $importdata); +$importdata = preg_replace("/\n--------\n/", "--MT-ENTRY--\n", $importdata); $authors = array(); $temp = array(); $posts = explode("--MT-ENTRY--", $importdata); @@ -179,7 +179,7 @@ set_magic_quotes_runtime(0); $importdata = file(MTEXPORT); // Read the file into an array $importdata = implode('', $importdata); // squish it $importdata = preg_replace("/(\r\n|\n|\r)/", "\n", $importdata); -$importdata = preg_replace("/--------\nAUTHOR/", "--MT-ENTRY--\nAUTHOR", $importdata); +$importdata = preg_replace("/\n--------\n/", "--MT-ENTRY--", $importdata); $authors = array(); $temp = array(); $posts = explode("--MT-ENTRY--", $importdata);