WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 3 months ago

#17905 new defect (bug)

Multisite doesn't delete a user's posts/links upon removal

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]

Attachments (1)

17905.diff (1.6 KB) - added by duck_ 3 years ago.

Download all attachments as: .zip

Change History (4)

duck_3 years ago

comment:1 duck_3 years ago

  • Description modified (diff)

comment:3 jeremyfelt3 months ago

  • Component changed from Multisite to Users
  • Focuses multisite added
Note: See TracTickets for help on using tickets.