[wpmu-trac] [WordPress MU Trac] #258: Function "get_users_of_blog" missing

WordPress MU Trac wpmu-trac at lists.automattic.com
Thu Feb 15 11:34:32 GMT 2007


#258: Function "get_users_of_blog" missing
------------------------+---------------------------------------------------
 Reporter:  GIGALinux   |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:          
Component:  component1  |     Version:          
 Severity:  normal      |    Keywords:          
------------------------+---------------------------------------------------
 On /wp-admin/wpmu-blogs.php are the function get_users_of_blog missing


 {{{
 function get_users_of_blog( $id = '' ) {
         global $wpdb, $wpmuBaseTablePrefix;
         if ( empty($id) )
            $id = $wpdb->blogid;
         $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 = '" .
 $wpmuBaseTablePrefix . $id . "_capabilities' ORDER BY
 {$wpdb->usermeta}.user_id" );
         return $users;
 }
 }}}

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/258>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list