From 8226fe338f822ceb44722311bff035d70fde6a7f Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sat, 25 May 2019 00:12:22 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/class-wp-users-list-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 28e1978721..e720a4af05 100644 --- a/src/wp-admin/includes/class-wp-users-list-table.php +++ b/src/wp-admin/includes/class-wp-users-list-table.php @@ -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'] = "" . __( 'Delete' ) . ''; } - 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'] = "" . __( 'Remove' ) . ''; }