WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/08/2010 07:12:44 AM (11 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-admin/setup-config.php

    r16099 r16788  
    177177    // We'll fail here if the values are no good.
    178178    require_wp_db();
    179     if ( !empty($wpdb->error) )
    180         wp_die($wpdb->error->get_error_message());
     179    if ( ! empty( $wpdb->error ) ) {
     180        $back = '<p class="step"><a href="setup-config.php?step=1" onclick="javascript:history.go(-1);return false;" class="button">Try Again</a></p>';
     181        wp_die( $wpdb->error->get_error_message() . $back );
     182    }
    181183
    182184    // Fetch or generate keys and salts.
Note: See TracChangeset for help on using the changeset viewer.