Make WordPress Core


Ignore:
Timestamp:
12/08/2010 07:12:44 AM (13 years ago)
Author:
nacin
Message:

Don't improperly whitescreen on incorrect DB credentials during setup-config. Show error message with an opportunity to try again. fixes #15682.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/wp-db.php

    r16660 r16788  
    10451045"/*/WP_I18N_DB_CONN_ERROR*/, $this->dbhost ), 'db_connect_fail' );
    10461046
    1047             //If show errors is disabled then we need to die anyway as we don't have a working DB connection
     1047            // If show errors is disabled then we need to die anyway as we don't have a working DB connection
     1048            // unless we're trying to test the initial connection, in which case setup-config.php will handle.
     1049            if ( defined( 'WP_SETUP_CONFIG' ) )
     1050                return;
     1051
    10481052            die();
    10491053        }
Note: See TracChangeset for help on using the changeset viewer.