Changeset 1308

Show
Ignore:
Timestamp:
05/23/08 15:09:10 (5 months ago)
Author:
donncha
Message:

Use base_prefix instead of hardcoding the prefix, props luigisa, fixes #638

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/wpmu-functions.php

    r1307 r1308  
    392392        $blogs = $match = array(); 
    393393        foreach ( (array) $user as $key => $value ) { 
    394                 if ( strstr( $key, '_capabilities') && strstr( $key, 'wp_') ) { 
     394                if ( strstr( $key, '_capabilities') && strstr( $key, $wpdb->base_prefix) ) { 
    395395                        preg_match('/' . $wpdb->base_prefix . '(\d+)_capabilities/', $key, $match); 
    396396                        $blog = get_blog_details( $match[1] );