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