Make WordPress Core

Opened 2 years 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:
Priority: normal Milestone: Awaiting Review
Component: General Version:
Severity: normal Keywords:
Cc: Focuses: multisite

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)

page wp-admin:network:site-users.php?id=xxx. 1-2.png​ (216.3 KB ) - added by ignatiusjeroe 2 years ago.
page wp-admin:network:site-users.php?id=xxx. 2-2.png​ (127.8 KB ) - added by ignatiusjeroe 2 years ago.

Download all attachments as: .zip

Change History (2)

Note: See TracTickets for help on using tickets.