Make WordPress Core

Ticket #13103: 13103.patch

File 13103.patch, 816 bytes (added by SergeyBiryukov, 12 years ago)
  • wp-admin/install.php

     
    167167        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>' );
    168168}
    169169
     170if ( ! $wpdb->get_row( $wpdb->prepare( 'SHOW CHARACTER SET WHERE Charset = %s', DB_CHARSET ) ) ) {
     171        display_header();
     172        die( '<h1>' . __( 'Configuration Error' ) . '</h1><p>' . sprintf( __( "Your <code>wp-config.php</code> file has '%s' database charset, which is not available in your database." ), DB_CHARSET ) . '</p></body></html>' );
     173}
     174
    170175switch($step) {
    171176        case 0: // Step 1
    172177        case 1: // Step 1, direct link.