public function edit_user_profile($user) { global $current_user; if (!is_network_admin()) { parent::edit_user_profile($user); return; } if (!$this->lib->user_is_admin($current_user->ID)) { return; } ?> <h3><?php _e('User Role Editor', 'ure'); ?> </h3> <table class="form-table"> <tr> <th scope="row"><?php _e('Roles', 'ure'); ?> </th> <td> <?php $output = $this->lib->roles_text($user->roles); echo $output . ' >> <a href="' . wp_nonce_url("users.php?page=users-" . URE_PLUGIN_FILE . "&object=user&user_id={$user->ID}", "ure_user_{$user->ID}") . '">' . __('Edit', 'ure') . '</a>'; ?> </td> </tr> </table> <?php }