s/table_prefix/prefix/
git-svn-id: http://svn.automattic.com/wordpress/trunk@4853 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
73a225e4e6
commit
7179a94a0d
|
@ -56,7 +56,7 @@ function get_users_of_blog( $id = '' ) {
|
|||
global $wpdb, $blog_id;
|
||||
if ( empty($id) )
|
||||
$id = $blog_id;
|
||||
$users = $wpdb->get_results( "SELECT user_id, user_login, user_email, meta_value FROM $wpdb->users, $wpdb->usermeta WHERE " . $wpdb->users . ".ID = " . $wpdb->usermeta . ".user_id AND meta_key = '" . $wpdb->table_prefix . "_capabilities' ORDER BY {$wpdb->usermeta}.user_id" );
|
||||
$users = $wpdb->get_results( "SELECT user_id, user_login, user_email, meta_value FROM $wpdb->users, $wpdb->usermeta WHERE " . $wpdb->users . ".ID = " . $wpdb->usermeta . ".user_id AND meta_key = '" . $wpdb->prefix . "_capabilities' ORDER BY {$wpdb->usermeta}.user_id" );
|
||||
return $users;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue