Feature #10821
closedDeleting user account should not permanently delete content
0%
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
Updated by Boone Gorges almost 6 years ago
- Related to Support #10820: retrieve deleted pages/posts added
Updated by Boone Gorges almost 6 years ago
An update that, in the case of #10820, content was fully deleted only in the case of one of the sites. I'll investigate more.
Updated by Boone Gorges almost 6 years ago
- Target version changed from 1.14.3 to 1.14.4
Updated by Boone Gorges almost 6 years ago
- Target version changed from 1.14.4 to 1.14.5
Updated by Boone Gorges almost 6 years ago
- Target version changed from 1.14.5 to 1.14.6
Updated by Boone Gorges almost 6 years ago
- Target version changed from 1.14.6 to 1.14.7
Updated by Boone Gorges over 5 years ago
- Target version changed from 1.14.7 to 1.14.8
Updated by Boone Gorges over 5 years ago
- Target version changed from 1.14.8 to 1.14.9
Updated by Boone Gorges over 5 years ago
- Target version changed from 1.14.9 to 1.14.10
Updated by Raymond Hoh over 5 years ago
- Target version changed from 1.14.10 to 1.14.11
Updated by Boone Gorges over 5 years ago
- Target version changed from 1.14.11 to 1.15.1
Updated by Boone Gorges over 5 years ago
- Target version changed from 1.15.1 to 1.15.2
Updated by Boone Gorges over 5 years ago
- Status changed from New to Rejected
I've done some testing and can't find a way to reproduce, so I don't think there's anything to do here.