Users: Allow Super Admins to remove themselves from a site on a Multisite network.
Props Mista-Flo, birgire Fixes #41439 git-svn-id: https://develop.svn.wordpress.org/trunk@45407 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4812590582
commit
8226fe338f
@ -431,7 +431,7 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||
if ( ! is_multisite() && get_current_user_id() != $user_object->ID && current_user_can( 'delete_user', $user_object->ID ) ) {
|
||||
$actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url( "users.php?action=delete&user=$user_object->ID", 'bulk-users' ) . "'>" . __( 'Delete' ) . '</a>';
|
||||
}
|
||||
if ( is_multisite() && get_current_user_id() != $user_object->ID && current_user_can( 'remove_user', $user_object->ID ) ) {
|
||||
if ( is_multisite() && current_user_can( 'remove_user', $user_object->ID ) ) {
|
||||
$actions['remove'] = "<a class='submitdelete' href='" . wp_nonce_url( $url . "action=remove&user=$user_object->ID", 'bulk-users' ) . "'>" . __( 'Remove' ) . '</a>';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user