Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#23730 closed enhancement (duplicate)

When deleting a user, skip asking what do do with their posts if they don't have any

Reported by: benjmay's profile benjmay Owned by:
Milestone: Priority: normal
Severity: minor Version:
Component: Users Keywords: has-patch
Focuses: Cc:


When deleting one or many users, I don't think it makes sense, and is an unnecessary click to ask someone what to do with their posts if they haven't made any.

It's a tiny time saver for administrators.

I put a quick proof of concept together, essentially checking that any of the user(s) about to be deleted have any kind of post, and if they don't, just show a hidden input to run the default delete action on the next step, rather than re-assign.

I also put a check on the jQuery in the header, that if that hidden field exists, it doesn't disable the submit button.

I'm not sure if a text line with words to the effect of "This user has no posts that need to be dealt with" - incase they are expecting those two options.

Attachments (2)

users.diff (2.9 KB) - added by benjmay 11 years ago.
23730.diff (2.9 KB) - added by benjmay 11 years ago.

Download all attachments as: .zip

Change History (5)

11 years ago

#1 @benjmay
11 years ago

  • Keywords has-patch added

11 years ago

#2 @ocean90
11 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Version trunk deleted

Could you upload your patch to #6405 please?

#3 @benjmay
11 years ago

Thanks, I looked everywhere for an existing ticket, I swear :-)

Note: See TracTickets for help on using tickets.