Network install: When showing the path to wp-config.php make sure our slashes are normalized.

props VarunAgw.
fixes #27025.


git-svn-id: https://develop.svn.wordpress.org/trunk@27112 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2014-02-06 22:21:34 +00:00
parent 1304fb3463
commit a2c2c3bfba
1 changed files with 5 additions and 3 deletions

View File

@ -329,9 +329,11 @@ function network_step2( $errors = false ) {
$rewrite_base = ! empty( $wp_siteurl_subdir ) ? ltrim( trailingslashit( $wp_siteurl_subdir ), '/' ) : ''; $rewrite_base = ! empty( $wp_siteurl_subdir ) ? ltrim( trailingslashit( $wp_siteurl_subdir ), '/' ) : '';
$location_of_wp_config = ABSPATH; $location_of_wp_config = $abspath_fix;
if ( ! file_exists( ABSPATH . 'wp-config.php' ) && file_exists( dirname( ABSPATH ) . '/wp-config.php' ) ) if ( ! file_exists( ABSPATH . 'wp-config.php' ) && file_exists( dirname( ABSPATH ) . '/wp-config.php' ) ) {
$location_of_wp_config = trailingslashit( dirname( ABSPATH ) ); $location_of_wp_config = dirname( $abspath_fix );
}
$location_of_wp_config = trailingslashit( $location_of_wp_config );
// Wildcard DNS message. // Wildcard DNS message.
if ( is_wp_error( $errors ) ) if ( is_wp_error( $errors ) )