Make WordPress Core

Ticket #7997: setup-config.diff

File setup-config.diff, 874 bytes (added by sivel, 17 years ago)
  • wp-admin/setup-config.php

     
    4343        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>");
    4444
    4545// Check if wp-config.php exists above the root directory
    46 if (file_exists('../../wp-config.php'))
     46if (file_exists('../../wp-config.php') && ! file_exists('../../wp-load.php'))
    4747        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>");
    4848
    4949if (isset($_GET['step']))