mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-09 09:57:38 +01:00
Update includes in import files, fixes #1427
git-svn-id: http://svn.automattic.com/wordpress/trunk@2687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e065df406a
commit
df98e352ac
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
if (!file_exists('../wp-config.php')) die("There doesn't seem to be a wp-config.php file. Double check that you updated wp-config-sample.php with the proper database connection information and renamed it to wp-config.php.");
|
||||
require_once('../wp-config.php');
|
||||
require('upgrade-functions.php');
|
||||
require_once('upgrade-functions.php');
|
||||
$step = $_GET['step'];
|
||||
if (!$step) $step = 0;
|
||||
header( 'Content-Type: text/html; charset=utf-8' );
|
||||
|
@ -16,7 +16,7 @@ for ($i=0; $i<count($wpvarstoreset); $i += 1) {
|
||||
}
|
||||
}
|
||||
require_once('../wp-config.php');
|
||||
require('upgrade-functions.php');
|
||||
require_once('upgrade-functions.php');
|
||||
header( 'Content-Type: text/html; charset=utf-8' );
|
||||
switch ($action) {
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
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_once('../wp-config.php');
|
||||
require('upgrade-functions.php');
|
||||
require_once('upgrade-functions.php');
|
||||
|
||||
$wpvarstoreset = array('action', 'gmpath', 'archivespath', 'lastentry');
|
||||
for ($i=0; $i<count($wpvarstoreset); $i += 1) {
|
||||
|
@ -13,7 +13,7 @@ $add_hours = intval($timezone_offset);
|
||||
$add_minutes = intval(60 * ($timezone_offset - $add_hours));
|
||||
|
||||
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_once('../wp-config.php');
|
||||
|
||||
$step = $_GET['step'];
|
||||
if (!$step) $step = 0;
|
||||
|
@ -4,8 +4,8 @@ define('MTEXPORT', '');
|
||||
//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.");
|
||||
require('../wp-config.php');
|
||||
require ('upgrade-functions.php');
|
||||
require_once('../wp-config.php');
|
||||
require_once('upgrade-functions.php');
|
||||
$step = $_GET['step'];
|
||||
if (!$step) $step = 0;
|
||||
header( 'Content-Type: text/html; charset=utf-8' );
|
||||
|
@ -18,7 +18,7 @@ $add_hours = intval($timezone_offset);
|
||||
$add_minutes = intval(60 * ($timezone_offset - $add_hours));
|
||||
|
||||
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_once('../wp-config.php');
|
||||
|
||||
$step = $_GET['step'];
|
||||
if (!$step) $step = 0;
|
||||
|
@ -8,8 +8,8 @@ $tp_database_password = 'password';
|
||||
$tp_database_host = 'localhost';
|
||||
|
||||
if (!file_exists('../wp-config.php')) die("There doesn't seem to be a wp-config.php file. Double check that you updated wp-config-sample.php with the proper database connection information and renamed it to wp-config.php.");
|
||||
require('../wp-config.php');
|
||||
require('upgrade-functions.php');
|
||||
require_once('../wp-config.php');
|
||||
require_once('upgrade-functions.php');
|
||||
|
||||
$step = $_GET['step'];
|
||||
if (!$step) $step = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user