diff --git a/src/wp-admin/network/site-users.php b/src/wp-admin/network/site-users.php
index 68cc29c723..95db765751 100644
a
|
b
|
if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_us |
298 | 298 | <tr> |
299 | 299 | <th scope="row"><label for="new_role_adduser"><?php _e( 'Role' ); ?></label></th> |
300 | 300 | <td><select name="new_role" id="new_role_adduser"> |
301 | | <?php wp_dropdown_roles( get_option( 'default_role' ) ); ?> |
| 301 | <?php |
| 302 | switch_to_blog( $id ); |
| 303 | wp_dropdown_roles( get_option( 'default_role' ) ); |
| 304 | restore_current_blog(); |
| 305 | ?> |
302 | 306 | </select></td> |
303 | 307 | </tr> |
304 | 308 | </table> |
… |
… |
if ( current_user_can( 'create_users' ) && apply_filters( 'show_network_site_use |
331 | 335 | <tr> |
332 | 336 | <th scope="row"><label for="new_role_newuser"><?php _e( 'Role' ); ?></label></th> |
333 | 337 | <td><select name="new_role" id="new_role_newuser"> |
334 | | <?php wp_dropdown_roles( get_option( 'default_role' ) ); ?> |
| 338 | <?php |
| 339 | switch_to_blog( $id ); |
| 340 | wp_dropdown_roles( get_option( 'default_role' ) ); |
| 341 | restore_current_blog(); |
| 342 | ?> |
335 | 343 | </select></td> |
336 | 344 | </tr> |
337 | 345 | <tr class="form-field"> |