Issue an error during the WordPress install process if wp-config.php is configured with an empty database table prefix, which is not supported.

props SergeyBiryukov.
fixes #19970.



git-svn-id: http://core.svn.wordpress.org/trunk@20699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-05-02 20:37:18 +00:00
parent a0beb9a1d1
commit c02d96890a
1 changed files with 9 additions and 4 deletions

View File

@ -162,6 +162,11 @@ if ( !$mysql_compat || !$php_compat ) {
die( '<h1>' . __( 'Insufficient Requirements' ) . '</h1><p>' . $compat . '</p></body></html>' );
}
if ( empty( $wpdb->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>' );
}
switch($step) {
case 0: // Step 1
case 1: // Step 1, direct link.