Make WordPress Core


Ignore:
Timestamp:
04/02/2010 05:23:36 PM (15 years ago)
Author:
ryan
Message:

Use wpdb->prefix instead of wpdb->base_prefix(). base_prefix() does not return the correct prefix when a blog ID is not passed.

File:
1 edited

Legend:

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

    r13934 r13947  
    689689            $this->query_where .= $wpdb->prepare(" AND $wpdb->usermeta.meta_key = '{$wpdb->prefix}capabilities' AND $wpdb->usermeta.meta_value LIKE %s", '%' . $this->role . '%');
    690690        } elseif ( is_multisite() ) {
    691             $level_key = $wpdb->get_blog_prefix() . 'capabilities'; // wpmu site admins don't have user_levels
     691            $level_key = $wpdb->prefix . 'capabilities'; // wpmu site admins don't have user_levels
    692692            $this->query_from .= ", $wpdb->usermeta";
    693693            $this->query_where .= " AND $wpdb->users.ID = $wpdb->usermeta.user_id AND meta_key = '{$level_key}'";
Note: See TracChangeset for help on using the changeset viewer.