Make WordPress Core

Changeset 19643


Ignore:
Timestamp:
01/02/2012 09:31:27 PM (15 years ago)
Author:
ryan
Message:

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

Location:
branches/3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3

  • branches/3.3/wp-includes/capabilities.php

    • Property svn:mergeinfo changed (with no actual effect on merging)
  • branches/3.3/wp-includes/user.php

    r19625 r19643  
    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.