Changeset 12935 for trunk/wp-admin/ms-edit.php
- Timestamp:
- 02/03/2010 05:37:15 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/ms-edit.php
r12878 r12935 113 113 reset( $site_admins ); 114 114 foreach ( (array) $site_admins as $site_admin ) { 115 $uid = $wpdb->get_var( "SELECT ID FROM {$wpdb->users} WHERE user_login='{$site_admin}'");115 $uid = get_user_by('login', $site_admin); 116 116 if ( $uid ) 117 add_user_to_blog( $mainblog_id, $uid , 'administrator' );117 add_user_to_blog( $mainblog_id, $uid->ID, 'administrator' ); 118 118 } 119 119 }
Note: See TracChangeset
for help on using the changeset viewer.