Project

General

Profile

Feature #10821

Deleting user account should not permanently delete content

Added by Boone Gorges 10 months ago. Updated 5 months ago.

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

0%

Estimated time:

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

History

#1 Updated by Boone Gorges 10 months ago

#2 Updated by Boone Gorges 10 months 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.

#3 Updated by Boone Gorges 10 months ago

  • Target version changed from 1.14.3 to 1.14.4

#4 Updated by Boone Gorges 9 months ago

  • Target version changed from 1.14.4 to 1.14.5

#5 Updated by Boone Gorges 9 months ago

  • Target version changed from 1.14.5 to 1.14.6

#6 Updated by Boone Gorges 8 months ago

  • Assignee set to Boone Gorges

#7 Updated by Boone Gorges 8 months ago

  • Target version changed from 1.14.6 to 1.14.7

#8 Updated by Boone Gorges 8 months ago

  • Target version changed from 1.14.7 to 1.14.8

#9 Updated by Boone Gorges 7 months ago

  • Target version changed from 1.14.8 to 1.14.9

#10 Updated by Boone Gorges 7 months ago

  • Target version changed from 1.14.9 to 1.14.10

#11 Updated by Raymond Hoh 6 months ago

  • Target version changed from 1.14.10 to 1.14.11

#12 Updated by Boone Gorges 6 months ago

  • Target version changed from 1.14.11 to 1.15.1

#13 Updated by Boone Gorges 5 months ago

  • Target version changed from 1.15.1 to 1.15.2

#14 Updated by Boone Gorges 5 months 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.

Also available in: Atom PDF