Make WordPress Core

Ticket #29680: 29680.patch

File 29680.patch, 1.8 KB (added by chriscct7, 9 years ago)
  • src/wp-admin/setup-config.php

     
    5353        wp_die( '<p>' . sprintf( __( "The file 'wp-config.php' already exists. If you need to reset any of the configuration items in this file, please delete it first. You may try <a href='%s'>installing now</a>." ), 'install.php' ) . '</p>' );
    5454
    5555// Check if wp-config.php exists above the root directory but is not part of another install
    56 if ( file_exists(ABSPATH . '../wp-config.php' ) && ! file_exists( ABSPATH . '../wp-settings.php' ) )
     56if ( @file_exists(ABSPATH . '../wp-config.php' ) && ! @file_exists( ABSPATH . '../wp-settings.php' ) )
    5757        wp_die( '<p>' . sprintf( __( "The file 'wp-config.php' already exists one level above your WordPress installation. If you need to reset any of the configuration items in this file, please delete it first. You may try <a href='install.php'>installing now</a>."), 'install.php' ) . '</p>' );
    5858
    5959$step = isset( $_GET['step'] ) ? (int) $_GET['step'] : -1;
  • src/wp-load.php

     
    3636        /** The config file resides in ABSPATH */
    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 */
    4242        require_once( dirname(ABSPATH) . '/wp-config.php' );