WordPress.org

Make WordPress Core

Ticket #14756: 14756.5.diff

File 14756.5.diff, 1.1 KB (added by PeteMall, 7 years ago)
  • wp-admin/network/site-users.php

     
    4343        // Roles are stored in memory, not the DB.
    4444        $editblog_roles = $wp_roles->roles;
    4545}
     46$default_role = get_blog_option( $id, 'default_role' );
    4647
    4748$action = $wp_list_table->current_action();
    4849
     
    237238                        <th scope="row"><?php _e( 'Role'); ?></th>
    238239                        <td><select name="new_role" id="new_role_0">
    239240                        <?php
    240                         $default_role = $wpdb->get_var( "SELECT `option_value` FROM {$blog_prefix}options WHERE option_name = 'default_role'" );
    241241                        reset( $editblog_roles );
    242242                        foreach ( $editblog_roles as $role => $role_assoc ){
    243243                                $name = translate_user_role( $role_assoc['name'] );
     
    286286        <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?>
    287287        <?php submit_button( __('Add New User'), 'primary', 'add-user' ); ?>
    288288</form>
     289<?php endif; ?>
    289290</div>
    290 <?php endif; ?>
    291291<?php
    292292require('../admin-footer.php');
    293  No newline at end of file