|
@@ 109-111 (lines=3) @@
|
| 106 |
|
if ( path_in_php_open_basedir( dirname( $site_path ) ) ) { |
| 107 |
|
|
| 108 |
|
// Handle wordpress installed in a subdirectory |
| 109 |
|
if ( file_exists( dirname( $site_path ) . '/wp-config.php' ) && ! file_exists( $site_path . '/wp-config.php' ) && file_exists( dirname( $site_path ) . '/index.php' ) ) { |
| 110 |
|
$home_path = dirname( $site_path ); |
| 111 |
|
} |
| 112 |
|
|
| 113 |
|
// Handle wp-config.php being above site_path |
| 114 |
|
if ( file_exists( dirname( $site_path ) . '/wp-config.php' ) && ! file_exists( $site_path . '/wp-config.php' ) && ! file_exists( dirname( $site_path ) . '/index.php' ) ) { |
|
@@ 114-116 (lines=3) @@
|
| 111 |
|
} |
| 112 |
|
|
| 113 |
|
// Handle wp-config.php being above site_path |
| 114 |
|
if ( file_exists( dirname( $site_path ) . '/wp-config.php' ) && ! file_exists( $site_path . '/wp-config.php' ) && ! file_exists( dirname( $site_path ) . '/index.php' ) ) { |
| 115 |
|
$home_path = $site_path; |
| 116 |
|
} |
| 117 |
|
|
| 118 |
|
} |
| 119 |
|
|