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:
parent
6b46997aa1
commit
fcf7cda3c6
@ -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>' );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user