Make WordPress Core

Opened 7 years ago

Last modified 3 years ago

#17905 assigned defect (bug)

Multisite doesn't delete a user's posts/links upon removal — at Version 1

Reported by: duck_ Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 3.0
Component: Users Keywords: has-patch
Focuses: multisite Cc:

Description (last modified by duck_)

When the "Delete all posts and links." radio is selected all that happens is the user is deleted but their posts are left in tact but without a visible user. The posts should be moved to trash as well.

This is caused by removal from the blog in network/edit.php before the user is actually deleted where trashing of posts occurs. Since the user no longer has any assigned blogs wpmu_delete_user() doesn't call wp_delete_post().

Patch attached also cleans up confirm_delete_users slightly by using the array passed as an argument instead of $_POSTallusers?.

Related: [13918]

Change History (2)

7 years ago

#1 @duck_
7 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.