Make WordPress Core

Ticket #13723: wp-load.patch

File wp-load.patch, 900 bytes (added by albanc, 13 years ago)

patch for wp-load.php

Line 
1*** wp-load.php.bad     2010-06-04 13:00:30.000000000 +0200
2--- wp-load.php 2010-06-04 13:02:09.000000000 +0200
3***************
4*** 29,38 ****
5        /** The config file resides in ABSPATH */
6        require_once( ABSPATH . 'wp-config.php' );
7 
8! } elseif ( file_exists( dirname(ABSPATH) . '/wp-config.php' ) && ! file_exists( dirname(ABSPATH) . '/wp-settings.php' ) ) {
9 
10        /** The config file resides one level above ABSPATH but is not part of another install*/
11!       require_once( dirname(ABSPATH) . '/wp-config.php' );
12 
13  } else {
14 
15--- 29,38 ----
16        /** The config file resides in ABSPATH */
17        require_once( ABSPATH . 'wp-config.php' );
18 
19! } elseif ( file_exists( ABSPATH . 'wp-config.php' ) && ! file_exists( ABSPATH . 'wp-settings.php' ) ) {
20 
21        /** The config file resides one level above ABSPATH but is not part of another install*/
22!       require_once( ABSPATH . 'wp-config.php' );
23 
24  } else {
25