Make WordPress Core

Opened 11 years ago

Last modified 7 years ago

#26861 reviewing enhancement

Too easy to delete a site in Multisite

Reported by: bradparbs's profile bradparbs Owned by: flixos90's profile flixos90
Milestone: Awaiting Review Priority: normal
Severity: minor Version:
Component: Networks and Sites Keywords: has-patch
Focuses: ui, multisite Cc:

Description

Currently, deleting a site in Multisite is very easy. There is no warning what deleting a site actually means, and nothing to show a user they are about to perform a destructive action. Just the ability to confirm, not even cancel!

I'm not sure what the prompt should actually say, or if there is a better way to do a prompt, or if the button should just be red, but there's for sure something we can change here to make a better experience.

Attachments (3)

Screen Shot 2014-01-17 at 7.45.16 AM.png (21.2 KB) - added by bradparbs 11 years ago.
Deletion sample
26861.diff (1.7 KB) - added by bradparbs 11 years ago.
Updating language. Maybe this is all we need?
Screen Shot 2015-03-17 at 3.45.11 PM.png (90.4 KB) - added by saracannon 10 years ago.
Stronger Wording and Archive Prompt

Download all attachments as: .zip

Change History (21)

#1 @jackreichert
11 years ago

I was thinking that perhaps an email to the site owner confirming, similar to how signup email confirmations work, should be sent. This would act as a two-factor authentication.

At the very least a message indicating exactly what will be deleted: i.e. posts, pages, comments etc and that it is permanent and will be irrecoverable.

#2 @bradparbs
11 years ago

At the very least a message indicating exactly what will be deleted: i.e. posts, pages, comments etc and that it is permanent and will be irrecoverable.

I think this is the best way to go.

Patch incoming in a few mins. :)

Last edited 11 years ago by bradparbs (previous) (diff)

@bradparbs
11 years ago

Updating language. Maybe this is all we need?

#3 follow-up: @bradparbs
11 years ago

  • Keywords has-patch added; needs-patch removed

#4 in reply to: ↑ 3 @jackreichert
11 years ago

Replying to bradparbs:
Nice. Maybe add a heading? h1 or h2 to make it look more significant?

#5 follow-up: @helen
11 years ago

Your suggested language is grammatically incorrect, and a bit wordy. I would suggest something much simpler: "You are about to permanently delete the site %s. This action cannot be undone." If you're dying for emphasis, bold the second sentence.

#6 follow-up: @rmccue
11 years ago

Along the lines of the old AYS changes (and ask for forgiveness, not permission), maybe we should rethink the process: instead of deleting a site, why not trash it, with the ability to restore later? It's obviously a much larger change, but these sorts of issues are symptomatic of the underlying problem.

#7 in reply to: ↑ 6 @jeremyfelt
11 years ago

Replying to rmccue:

instead of deleting a site, why not trash it, with the ability to restore later? It's obviously a much larger change, but these sorts of issues are symptomatic of the underlying problem.

I had this exact thought before remembering that it's possible to archive a site already. This may highlight how there could be room for a more explicit workflow.

#8 follow-up: @helen
11 years ago

Well... yes, I can't recall if there's another ticket on this already, but the number of different ways to deactivate a site that are exposed by default is confusing and not really self-explanatory.

#9 @jackreichert
11 years ago

Whatever is done, the message for Archive and Deactivate are similarly sparse. Perhaps, for each option, a larger explanation of consequences as well as links to the other options would be advisable.

#10 in reply to: ↑ 8 @jeremyfelt
11 years ago

Replying to helen:

Well... yes, I can't recall if there's another ticket on this already, but the number of different ways to deactivate a site that are exposed by default is confusing and not really self-explanatory.

Yep, looks like #17164

#11 in reply to: ↑ 5 @bradparbs
11 years ago

Replying to helen:

Your suggested language is grammatically incorrect, and a bit wordy. I would suggest something much simpler: "You are about to permanently delete the site %s. This action cannot be undone." If you're dying for emphasis, bold the second sentence.

In my defense, this was after a long weekend of #wcphx. I'm surprised I had enough energy to even go on trac. :)

I think your wording is clear enough.

Last edited 11 years ago by bradparbs (previous) (diff)

#12 @jeremyfelt
11 years ago

  • Component changed from Multisite to Networks and Sites
  • Focuses multisite added

#13 @helen
11 years ago

  • Focuses ui added
  • Keywords ui-feedback removed

#14 follow-up: @nacin
11 years ago

  • Keywords good-first-bug removed
  • Owner set to bradparbs
  • Status changed from new to assigned

So, looks like the string is:

'You are about to delete the site %s. This is a permanent and irrevocable. All pages, posts, comments, and other data will be deleted forever. There\'s no going back, please make sure this is something you want to do.

Two quibbles:

  • This string is long at more than 200 characters. If in a foreign language and URL encoded, it could come *really* close to the GET limit here. Can we make it so this stops getting passed via the URL? We can still use 'msg' if it is passed, but otherwise, we should be able to check that 'deleteblog' == $_GET['action2'] and then just print our message in sites.php. Not the original intent of this ticket, but I think it's necessary (and not difficult to do).
  • The sentence has a comma splice. I'd make "There's no going back." its own sentence. And, since we're going to move this out of the query string, we might even be able to use these amazing things called paragraph tags. I'd put one right before "There's no going back."

Brad, still interested in working on this?

#15 in reply to: ↑ 14 @bradparbs
11 years ago

Replying to nacin:

So, looks like the string is:

'You are about to delete the site %s. This is a permanent and irrevocable. All pages, posts, comments, and other data will be deleted forever. There\'s no going back, please make sure this is something you want to do.

Two quibbles:

  • This string is long at more than 200 characters. If in a foreign language and URL encoded, it could come *really* close to the GET limit here. Can we make it so this stops getting passed via the URL? We can still use 'msg' if it is passed, but otherwise, we should be able to check that 'deleteblog' == $_GET['action2'] and then just print our message in sites.php. Not the original intent of this ticket, but I think it's necessary (and not difficult to do).
  • The sentence has a comma splice. I'd make "There's no going back." its own sentence. And, since we're going to move this out of the query string, we might even be able to use these amazing things called paragraph tags. I'd put one right before "There's no going back."

Brad, still interested in working on this?

Great points - I'll throw together a patch for it later today. Thanks!

#16 @saracannon
10 years ago

How about a prompt to archive the site as an alternative to deletion within the warning?

@saracannon
10 years ago

Stronger Wording and Archive Prompt

This ticket was mentioned in Slack in #core-multisite by maximeculea. View the logs.


7 years ago

#18 @flixos90
7 years ago

  • Owner changed from bradparbs to flixos90
  • Status changed from assigned to reviewing
Note: See TracTickets for help on using tickets.