Make WordPress Core

Opened 7 weeks 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's profile 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)

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

Download all attachments as: .zip

Change History (2)

Note: See TracTickets for help on using tickets.