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

git-svn-id: http://core.svn.wordpress.org/trunk@20700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-05-02 20:38:58 +00:00
parent c02d96890a
commit 026289fa33
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>' );
}