Opened 7 months ago
#61107 new defect (bug)
'Change role to...' field on wp-admin/network/site-users.php?id=xxx is populated by wrong site roles
Reported by: | ignatiusjeroe | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Focuses: | multisite | Cc: |
Description
Please see images for bug details
The solutions
Replace line 314 in file wp-admin/includes/class-wp-users-list-table.php with:
<?php <?php if ( $this->is_site_users ) { switch_to_blog( $this->site_id ); wp_dropdown_roles(); restore_current_blog(); } else { wp_dropdown_roles(); } ?>
Attachments (2)
Note: See
TracTickets for help on using
tickets.