Make WordPress Core

Ticket #41439: 41439.patch

File 41439.patch, 1.0 KB (added by Mista-Flo, 5 years ago)
  • wp-admin/includes/class-wp-users-list-table.php

    diff --git a/wp-admin/includes/class-wp-users-list-table.php b/wp-admin/includes/class-wp-users-list-table.php
    index 28e1978721..e720a4af05 100644
    a b class WP_Users_List_Table extends WP_List_Table { 
    431431                        if ( ! is_multisite() && get_current_user_id() != $user_object->ID && current_user_can( 'delete_user', $user_object->ID ) ) {
    432432                                $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url( "users.php?action=delete&amp;user=$user_object->ID", 'bulk-users' ) . "'>" . __( 'Delete' ) . '</a>';
    433433                        }
    434                         if ( is_multisite() && get_current_user_id() != $user_object->ID && current_user_can( 'remove_user', $user_object->ID ) ) {
     434                        if ( is_multisite() && current_user_can( 'remove_user', $user_object->ID ) ) {
    435435                                $actions['remove'] = "<a class='submitdelete' href='" . wp_nonce_url( $url . "action=remove&amp;user=$user_object->ID", 'bulk-users' ) . "'>" . __( 'Remove' ) . '</a>';
    436436                        }
    437437