WordPress.org

Make WordPress Core

Opened 13 months ago

Closed 13 months ago

Last modified 13 months 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 Owned by:
Milestone: Priority: normal
Severity: minor Version:
Component: Users Keywords: has-patch
Focuses: Cc:

Description

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 13 months ago.
23730.diff (2.9 KB) - added by benjmay 13 months ago.

Download all attachments as: .zip

Change History (5)

benjmay13 months ago

comment:1 benjmay13 months ago

  • Keywords has-patch added

benjmay13 months ago

comment:2 ocean9013 months 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?

comment:3 benjmay13 months ago

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

Note: See TracTickets for help on using tickets.