Make WordPress Core

Changeset 13562


Ignore:
Timestamp:
03/02/2010 10:21:24 PM (14 years ago)
Author:
wpmuguru
Message:

allow empty table prefix on my-sites.php, see #12459

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-functions.php

    r13329 r13562  
    5151    $blogs = $match = array();
    5252    foreach ( (array) $user as $key => $value ) {
    53         if ( false !== strpos( $key, '_capabilities') && 0 === strpos( $key, $wpdb->base_prefix ) && preg_match( '/' . $wpdb->base_prefix . '((\d+)_)?capabilities/', $key, $match ) ) {
     53        if ( false !== strpos( $key, '_capabilities') && ( strlen( $wpdb->base_prefix ) == 0 || 0 === strpos( $key, $wpdb->base_prefix ) ) && preg_match( '/' . $wpdb->base_prefix . '((\d+)_)?capabilities/', $key, $match ) ) {
    5454            if ( count( $match ) > 2 )
    5555                $blog_id = $match[ 2 ];
Note: See TracChangeset for help on using the changeset viewer.