WordPress.org

Make WordPress Core

Changeset 19641


Ignore:
Timestamp:
12/30/2011 11:22:09 PM (6 years ago)
Author:
nacin
Message:

An empty database prefix is not supported for multisite. <small>Add a sanity check anyway.</small> see #19566.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/user.php

    r19624 r19641  
    697697        if ( 'capabilities' !== substr( $key, -12 ) )
    698698            continue;
    699         if ( 0 !== strpos( $key, $wpdb->base_prefix ) )
     699        if ( $wpdb->base_prefix && 0 !== strpos( $key, $wpdb->base_prefix ) )
    700700            continue;
    701701        $blog_id = str_replace( array( $wpdb->base_prefix, '_capabilities' ), '', $key );
Note: See TracChangeset for help on using the changeset viewer.