Users: Allow Super Admins to remove themselves from a site on a Multisite network.
Props Mista-Flo, birgire Fixes #41439 Built from https://develop.svn.wordpress.org/trunk@45407 git-svn-id: http://core.svn.wordpress.org/trunk@45218 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
eecfa3b4ed
commit
ca028cfc4c
|
@ -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>';
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.3-alpha-45406';
|
||||
$wp_version = '5.3-alpha-45407';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue