Make WordPress Core


Ignore:
Timestamp:
10/06/2015 02:19:17 PM (10 years ago)
Author:
wonderboymusic
Message:

Setup/Config: some dirname( ABSPATH ) file lookups should have errors suppressed due to possibility of open_basedir restrictions on hosts.

Props chriscct7, misterunknown.
Fixes #29680.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-load.php

    r32116 r34867  
    3737    require_once( ABSPATH . 'wp-config.php' );
    3838
    39 } elseif ( file_exists( dirname(ABSPATH) . '/wp-config.php' ) && ! file_exists( dirname(ABSPATH) . '/wp-settings.php' ) ) {
     39} elseif ( @file_exists( dirname( ABSPATH ) . '/wp-config.php' ) && ! @file_exists( dirname( ABSPATH ) . '/wp-settings.php' ) ) {
    4040
    4141    /** The config file resides one level above ABSPATH but is not part of another install */
    42     require_once( dirname(ABSPATH) . '/wp-config.php' );
     42    require_once( dirname( ABSPATH ) . '/wp-config.php' );
    4343
    4444} else {
Note: See TracChangeset for help on using the changeset viewer.