WordPress.org

Make WordPress Core

Opened 10 days ago

Last modified 10 days ago

#49416 reopened defect (bug)

Deleting a user when having thousands of users

Reported by: alexjones Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Users Keywords:
Focuses: administration, performance Cc:

Description

If you want to delete a user from WP-Admin and your WordPress installation has a very large number of users(a large Woocommerce shop for example) on the delete page it takes a lot of time to load all the users. The page stops working in some cases(like when you have 20k users) as it tries to load all of them on the page and the Confirm Deletion button doesn't work.

It would be helpful to have just a search field there and to not load any user if you don't want to attribute the content to another user. Some users request the deletion of their account from certain websites for privacy reasons and other and this task becomes tedious.

Change History (8)

This ticket was mentioned in Slack in #forums by carike. View the logs.


10 days ago

#2 @audrasjb
10 days ago

  • Keywords reporter-feedback added

Hi, welcome to WordPress Trac and thank you for the ticket,

The users screen query is paginated so it shouldn't take so much time. Also there is already a search field in this screen so I don't see how this could be improved.

#3 @carike
10 days ago

  • Resolution set to invalid
  • Status changed from new to closed

Hallo, Alex.

WordPress Trac needs reproduce-able steps to confirm a bug.
Screenshots can help a lot.

Are you aware of the tools available in WordPress to handle deletion requests?
Deleting accounts from the Users screen in wp-admin is not best practice.
You can find more information here: https://wordpress.org/support/article/tools-erase-personal-data-screen/

If you need assistance using the privacy tools, you can post a question here: https://wordpress.org/support/forum/miscellaneous/

#4 @ocean90
10 days ago

  • Keywords reporter-feedback removed
  • Resolution invalid deleted
  • Status changed from closed to reopened

This report is about the use of wp_dropdown_users() to assign the content to new users. wp_dropdown_users() is known to be not scalable, see #19867.

#5 @carike
10 days ago

Wow, that ticket is 5 years old.
Will discuss during #core-privacy office hours in Slack tonight if there is a possible alternative to

wp_dropdown_users()

that can be implemented during the deletion request to assign items to a different user, @ocean90

This ticket was mentioned in Slack in #core-privacy by carike. View the logs.


10 days ago

#7 @xkon
10 days ago

There's nothing related to the privacy tools within this report or #19867 @carike and it's not relevant with the Erasure requests. Erasure requests do not delete users, they just erase parts of the data that are not needed.

This is in regards to how the actual User Delete process / ui is handled (again not data erasures).

Just my 2c to avoid confusion on further replies :-).

#8 @carike
10 days ago

I trust your opinion on the matter that it will cause a different set of problems if user deletion is included with the data erasure, as discussed in Slack, @xkon :)

"Some users request the deletion of their account from certain websites for privacy reasons"

@alexjones Deleting users when you have an e-commerce store is not considered best practice, as there are mandatory record-retention periods in most jurisdictions for tax purposes, among other things.
This being said, of course I can't and won't try to dictate what other people do on their sites.
Trac isn't the best place to deal with those sorts of considerations though, so I really do encourage you to visit the forums and discuss the matter there, if you are looking for alternative solutions.

And, with that, I send :fourleafclover:s and :coffee:
Best of luck, everyone :)

Note: See TracTickets for help on using tickets.