Make WordPress Core


Ignore:
Timestamp:
05/21/2008 05:59:27 AM (16 years ago)
Author:
ryan
Message:

Allow wp-config.php to exist one level up from WordPress root directory. Props sambauers. fixes #6933

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/setup-config.php

    r7883 r7971  
    2020if (file_exists('../wp-config.php'))
    2121    wp_die("<p>The file 'wp-config.php' already exists. If you need to reset any of the configuration items in this file, please delete it first. You may try <a href='install.php'>installing now</a>.</p>");
     22
     23// Check if wp-config.php exists above the root directory
     24if (file_exists('../../wp-config.php'))
     25    wp_die("<p>The file 'wp-config.php' already exists one level above your WordPress installation. If you need to reset any of the configuration items in this file, please delete it first. You may try <a href='install.php'>installing now</a>.</p>");
    2226
    2327if (isset($_GET['step']))
Note: See TracChangeset for help on using the changeset viewer.