Old variable would mysteriously crash some configs.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2180 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e9d1241d26
commit
a90237eb16
|
@ -1,11 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
define('MTEXPORT', '');// enter the relative path of the import.txt file containing the mt entries. If the file is called import.txt and it is /wp-admin, then this line
|
define('MTEXPORT', '');
|
||||||
|
// enter the relative path of the import.txt file containing the mt entries. If the file is called import.txt and it is /wp-admin, then this line
|
||||||
//should be define('MTEXPORT', 'import.txt');
|
//should be define('MTEXPORT', 'import.txt');
|
||||||
|
|
||||||
if (!file_exists('../wp-config.php')) die("There doesn't seem to be a wp-config.php file. You must install WordPress before you import any entries.");
|
if (!file_exists('../wp-config.php')) die("There doesn't seem to be a wp-config.php file. You must install WordPress before you import any entries.");
|
||||||
require('../wp-config.php');
|
require('../wp-config.php');
|
||||||
require ('upgrade-functions.php');
|
require ('upgrade-functions.php');
|
||||||
$step = $HTTP_GET_VARS['step'];
|
$step = $_GET['step'];
|
||||||
if (!$step) $step = 0;
|
if (!$step) $step = 0;
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
@ -55,7 +56,7 @@ switch($step) {
|
||||||
<p><code>define('MTEXPORT', 'import.txt');</code></p>
|
<p><code>define('MTEXPORT', 'import.txt');</code></p>
|
||||||
<p>You have to do this manually for security reasons.</p>
|
<p>You have to do this manually for security reasons.</p>
|
||||||
<p>If you've done that and you’re all ready, <a href="import-mt.php?step=1">let's go</a>! 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. :)</p>
|
<p>If you've done that and you’re all ready, <a href="import-mt.php?step=1">let's go</a>! 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. :)</p>
|
||||||
<p>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. </p>
|
<p>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. If you get an <strong>out of memory</strong> error try splitting up the import file into pieces. </p>
|
||||||
<?php
|
<?php
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue