mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 13:47:02 +01:00
Patch from Carthik
git-svn-id: https://develop.svn.wordpress.org/trunk@2383 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1fb1868801
commit
473ae1ef71
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user