/*
* The wpdb constructor bails when WP_SETUP_CONFIG is set, so we must
* fire this manually. We'll fail here if the values are no good.
*/
$wpdb->
db_connect();
if ( !
empty( $wpdb->error
) ) { wp_die( $wpdb->error->
get_error_message() .
$tryagain_link );
} $errors =
$wpdb->
suppress_errors();
$wpdb->
query( "SELECT
$prefix"
);
$wpdb->
suppress_errors( $errors );
if ( !
$wpdb->last_error
) { // MySQL was able to parse the prefix as a value, which we don't want. Bail.
wp_die( __( '<strong>Error:</strong> "Table Prefix" is invalid.'
) );
} // Generate keys and salts using secure CSPRNG; fallback to API if enabled; further fallback to original wp_generate_password().
try { $chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()-_ []{}<>~`+=,.;:/?|';