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:
parent
c02d96890a
commit
026289fa33
|
@ -162,7 +162,7 @@ if ( !$mysql_compat || !$php_compat ) {
|
||||||
die( '<h1>' . __( 'Insufficient Requirements' ) . '</h1><p>' . $compat . '</p></body></html>' );
|
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();
|
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>' );
|
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