Ticket #14756: 14756.5.diff
File 14756.5.diff, 1.1 KB (added by , 14 years ago) |
---|
-
wp-admin/network/site-users.php
43 43 // Roles are stored in memory, not the DB. 44 44 $editblog_roles = $wp_roles->roles; 45 45 } 46 $default_role = get_blog_option( $id, 'default_role' ); 46 47 47 48 $action = $wp_list_table->current_action(); 48 49 … … 237 238 <th scope="row"><?php _e( 'Role'); ?></th> 238 239 <td><select name="new_role" id="new_role_0"> 239 240 <?php 240 $default_role = $wpdb->get_var( "SELECT `option_value` FROM {$blog_prefix}options WHERE option_name = 'default_role'" );241 241 reset( $editblog_roles ); 242 242 foreach ( $editblog_roles as $role => $role_assoc ){ 243 243 $name = translate_user_role( $role_assoc['name'] ); … … 286 286 <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?> 287 287 <?php submit_button( __('Add New User'), 'primary', 'add-user' ); ?> 288 288 </form> 289 <?php endif; ?> 289 290 </div> 290 <?php endif; ?>291 291 <?php 292 292 require('../admin-footer.php'); 293 No newline at end of file