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 4035c58cb6..0b8c966bde 100644 --- a/src/wp-admin/includes/class-wp-users-list-table.php +++ b/src/wp-admin/includes/class-wp-users-list-table.php @@ -359,15 +359,14 @@ class WP_Users_List_Table extends WP_List_Table { else $url = 'users.php?'; + // Set up the hover actions for this user + $actions = array(); $checkbox = ''; // Check if the user for this row is editable if ( current_user_can( 'list_users' ) ) { // Set up the user editing link $edit_link = esc_url( add_query_arg( 'wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), get_edit_user_link( $user_object->ID ) ) ); - // Set up the hover actions for this user - $actions = array(); - if ( current_user_can( 'edit_user', $user_object->ID ) ) { $edit = "$user_object->user_login
"; $actions['edit'] = '' . __( 'Edit' ) . '';