Project

General

Profile

Actions

Feature #10821

closed

Deleting user account should not permanently delete content

Added by Boone Gorges over 5 years ago. Updated almost 5 years ago.

Status:
Rejected
Priority name:
Normal
Assignee:
Category name:
-
Target version:
Start date:
2018-12-12
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

See #10820.

It appears that if a user deletes his own account on the Commons, all of his content all over the Commons is also permanently deleted. I'm not 100% sure why this is happening. The code path appears to be: wpmu_delete_user(), which then calls wp_delete_post() with force_delete=false. This suggests that items should be put into the trash. However, in the case of #10820, I can see /delete-account/ entries at 12/Dec/2018:10:35:53, with all of the DELETE queries in the binary log happening immediately afterward. This strongly suggests that it was a one-click, automatic thing. We should disable this - things should be trashed instead of deleted.


Related issues

Related to CUNY Academic Commons - Support #10820: retrieve deleted pages/postsResolved2018-12-12

Actions
Actions

Also available in: Atom PDF