mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-14 22:00:23 +00:00
Allow wp-config.php to exist one level up from WordPress root directory. Props sambauers. fixes #6933
git-svn-id: https://develop.svn.wordpress.org/trunk@7971 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
<?php
|
||||
define('WP_INSTALLING', true);
|
||||
if (!file_exists('../wp-config.php')) {
|
||||
require_once('../wp-includes/compat.php');
|
||||
require_once('../wp-includes/functions.php');
|
||||
wp_die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>. You can create a <code>wp-config.php</code> file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.</p><p><a href='setup-config.php' class='button'>Create a Configuration File</a>", "WordPress › Error");
|
||||
}
|
||||
|
||||
require_once('../wp-config.php');
|
||||
require_once('../wp-load.php');
|
||||
require_once('./includes/upgrade.php');
|
||||
|
||||
if (isset($_GET['step']))
|
||||
|
||||
Reference in New Issue
Block a user