WordPress.org

Make WordPress Core

Changeset 27112


Ignore:
Timestamp:
02/06/2014 10:21:34 PM (8 years ago)
Author:
nacin
Message:

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

props VarunAgw.
fixes #27025.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network.php

    r26518 r27112  
    330330
    331331
    332     $location_of_wp_config = ABSPATH;
    333     if ( ! file_exists( ABSPATH . 'wp-config.php' ) && file_exists( dirname( ABSPATH ) . '/wp-config.php' ) )
    334         $location_of_wp_config = trailingslashit( dirname( ABSPATH ) );
     332    $location_of_wp_config = $abspath_fix;
     333    if ( ! file_exists( ABSPATH . 'wp-config.php' ) && file_exists( dirname( ABSPATH ) . '/wp-config.php' ) ) {
     334        $location_of_wp_config = dirname( $abspath_fix );
     335    }
     336    $location_of_wp_config = trailingslashit( $location_of_wp_config );
    335337
    336338    // Wildcard DNS message.
Note: See TracChangeset for help on using the changeset viewer.