diff --git a/wp-admin/network.php b/wp-admin/network.php index 51a617e329..c40e0effdf 100644 --- a/wp-admin/network.php +++ b/wp-admin/network.php @@ -316,6 +316,10 @@ function network_step2( $errors = false ) { $wp_siteurl_subdir = trailingslashit( '/' . preg_replace( '#^' . preg_quote( $base, '#' ) . '#', '', $wp_dir_from_root ) ); $rewrite_base = ! empty( $wp_siteurl_subdir ) ? ltrim( trailingslashit( $wp_siteurl_subdir ), '/' ) : ''; + $location_of_wp_config = ABSPATH; + if ( ! file_exists( ABSPATH . 'wp-config.php' ) && file_exists( dirname( ABSPATH ) . '/wp-config.php' ) ) + $location_of_wp_config = trailingslashit( dirname( ABSPATH ) ); + // Wildcard DNS message. if ( is_wp_error( $errors ) ) echo '
' . $errors->get_error_message() . '
'; @@ -360,7 +364,7 @@ function network_step2( $errors = false ) { } ?>
    -
  1. wp-config.php file in %s above the line reading /* That’s all, stop editing! Happy blogging. */:' ), ABSPATH ); ?>

    +
  2. wp-config.php file in %s above the line reading /* That’s all, stop editing! Happy blogging. */:' ), $location_of_wp_config ); ?>