diff --git a/src/wp-admin/includes/class-wp-users-list-table.php b/src/wp-admin/includes/class-wp-users-list-table.php
index 7e1e79f500..c08338364e 100644
a
|
b
|
class WP_Users_List_Table extends WP_List_Table { |
295 | 295 | <select name="<?php echo $id; ?>" id="<?php echo $id; ?>"> |
296 | 296 | <option value=""><?php _e( 'Change role to…' ); ?></option> |
297 | 297 | <?php wp_dropdown_roles(); ?> |
| 298 | <option value="none"><?php echo __( '— No role for this site —' ) ?> </option> |
298 | 299 | </select> |
299 | 300 | <?php |
300 | 301 | submit_button( __( 'Change' ), '', $button_id, false ); |
diff --git a/src/wp-admin/users.php b/src/wp-admin/users.php
index e8f006b9f4..bf214c865c 100644
a
|
b
|
switch ( $wp_list_table->current_action() ) { |
112 | 112 | } |
113 | 113 | |
114 | 114 | $editable_roles = get_editable_roles(); |
| 115 | |
| 116 | //mocking `none` role so we are able to save it to the database |
| 117 | $editable_roles['none'] = array( "name" => __( '— No role for this site —' ) ); |
| 118 | |
115 | 119 | $role = $_REQUEST['new_role']; |
116 | 120 | |
117 | 121 | if ( ! $role || empty( $editable_roles[ $role ] ) ) { |