A more resilient check for the base table prefix. see #19970.

git-svn-id: https://develop.svn.wordpress.org/trunk@20700 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-05-02 20:38:58 +00:00
parent 6b46997aa1
commit fcf7cda3c6
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ if ( !$mysql_compat || !$php_compat ) {
die( '<h1>' . __( 'Insufficient Requirements' ) . '</h1><p>' . $compat . '</p></body></html>' );
}
if ( empty( $wpdb->prefix ) ) {
if ( ! is_string( $wpdb->base_prefix ) || '' === $wpdb->base_prefix ) {
display_header();
die( '<h1>' . __( 'Configuration Error' ) . '</h1><p>' . __( 'Your <code>wp-config.php</code> file has an empty database table prefix, which is not supported.' ) . '</p></body></html>' );
}