Make WordPress Core

Changeset 20700


Ignore:
Timestamp:
05/02/2012 08:38:58 PM (13 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/install.php

    r20699 r20700  
    163163}
    164164
    165 if ( empty( $wpdb->prefix ) ) {
     165if ( ! is_string( $wpdb->base_prefix ) || '' === $wpdb->base_prefix ) {
    166166    display_header();   
    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>' );
Note: See TracChangeset for help on using the changeset viewer.