Make WordPress Core

Ticket #7997: wp-load.diff

File wp-load.diff, 561 bytes (added by sivel, 18 years ago)
  • wp-load.php

     
    2626        /** The config file resides in ABSPATH */
    2727        require_once( ABSPATH . 'wp-config.php' );
    2828
    29 } elseif ( file_exists( dirname(ABSPATH) . '/wp-config.php' ) ) {
     29} elseif ( file_exists( dirname(ABSPATH) . '/wp-config.php' ) && ! file_exists( dirname(ABSPATH) . '/wp-load.php' ) ) {
    3030
    3131        /** The config file resides one level below ABSPATH */
    3232        require_once( dirname(ABSPATH) . '/wp-config.php' );