mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
Patch from Carthik
git-svn-id: http://svn.automattic.com/wordpress/trunk@2383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ee0bee021f
commit
98874495fb
@ -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…
Reference in New Issue
Block a user