WordPress.org

Make WordPress Core

Ticket #14756: 14756.4.diff

File 14756.4.diff, 913 bytes (added by PeteMall, 10 years ago)
  • wp-admin/network/site-users.php

     
    270270                        <th scope="row"><?php _e( 'Role'); ?></th>
    271271                        <td><select name="new_role" id="new_role_0">
    272272                        <?php
     273                        if ( !isset( $default_role ) )
     274                                $default_role = $wpdb->get_var( "SELECT `option_value` FROM {$blog_prefix}options WHERE option_name = 'default_role'" );
    273275                        reset( $editblog_roles );
    274276                        foreach ( $editblog_roles as $role => $role_assoc ){
    275277                                $name = translate_user_role( $role_assoc['name'] );
     
    286288        <?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?>
    287289        <?php submit_button( __('Add New User'), 'primary', 'add-user' ); ?>
    288290</form>
     291<?php endif; ?>
    289292</div>
    290 <?php endif; ?>
    291293<?php
    292294require('../admin-footer.php');
    293  No newline at end of file