Make WordPress Core

Opened 2 years ago

Last modified 3 months ago

#56914 new enhancement

Better guide users when deleting other users

Reported by: stefanvelthuys's profile stefan.velthuys Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.5
Component: Users Keywords: has-screenshots has-patch
Focuses: ui, multisite Cc:

Description

When deleting a user, you have to decide, if their content should be assigned to another person, or if that content should be deleted.

The option to delete the content is quite drastic, compared to assigning it.
Since this option is not reversible, it should be made clearer, what impact this has.

I see multiple ways to warn the users, what they're about to do:

  • Mark the option to delete bold and use a different color (e.g. red)
  • Users have to confirm in a second step, if the delete option is selected
  • By default, pre-select the option to assign the content to another user
  • Use a kind of "Danger Zone" like GitHub does for deleting repositories

But maybe, something as simple as showing the amount of content could suffice:

  • Delete all content (19 posts, 2 pages, 31 images)

Attachments (2)

delete-user-current.png (65.6 KB) - added by stefan.velthuys 3 months ago.
Screenshots of the current user deletion screen. Left: single site. Right: multisite
delete-user-proposal-step-1.png (65.2 KB) - added by stefan.velthuys 3 months ago.
Screenshots of a proposed first step for the user deletion screen. Left: single site. Right: multisite

Download all attachments as: .zip

Change History (8)

#2 @hellofromTonya
19 months ago

  • Version changed from trunk to 3.5

Hello @stefanvelthuys,

Welcome to WordPress Core's Trac! Thank you for opening this enhancement ticket with your suggestions to improve the user experience :)

I'm doing some ticket triage for contributor discoverability.

Changing the Version to 3.5.0 which is when the choice of content deletion or reassignment was introduced (see [22166]).

#3 @stefan.velthuys
3 months ago

  • Focuses multisite added

@stefan.velthuys
3 months ago

Screenshots of the current user deletion screen. Left: single site. Right: multisite

@stefan.velthuys
3 months ago

Screenshots of a proposed first step for the user deletion screen. Left: single site. Right: multisite

#4 @stefan.velthuys
3 months ago

  • Keywords has-screenshots added

This applies primarily to multisites.

On single site installations, the options to delete all content is not pre-selected.
But on Multisite, the option is pre-selected.

In the first step, I'd propose that the behaviour for multisites should be similar to the behaviour in single sites: That the option is NOT pre-selected.

Additionally, the title should reflect the content.
Currently, in the multisite screen, the title is just "Users". That could be changed to "Delete Users".

This ticket was mentioned in PR #7095 on WordPress/wordpress-develop by AKSHAT2802.


3 months ago
#5

  • Keywords has-patch added

This PR solves the issue of giving more relevant information to a user when deleting other users.

#6 @akshat2802
3 months ago

Hey @stefanvelthuys
I have added a patch for current requirements. I want to contribute further to the ticket if core members approve any additional requirements.

Note: See TracTickets for help on using tickets.