Make WordPress Core

Opened 9 years ago

Last modified 8 months ago

#17905 assigned defect (bug)

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

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

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_ 9 years ago.

Download all attachments as: .zip

Change History (6)

9 years ago

#1 @duck_
9 years ago

  • Description modified (diff)

#3 @jeremyfelt
6 years ago

  • Component changed from Multisite to Users
  • Focuses multisite added

#4 @jeremyfelt
5 years ago

#32799 was marked as a duplicate.

#5 @wonderboymusic
4 years ago

  • Owner set to jeremyfelt
  • Status changed from new to assigned
Note: See TracTickets for help on using tickets.