[wp-trac] [WordPress Trac] #17905: Multisite doesn't delete a user's posts/links upon removal

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 27 13:04:20 UTC 2011


#17905: Multisite doesn't delete a user's posts/links upon removal
--------------------------+-----------------------------
 Reporter:  duck_         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Multisite     |     Version:  3.0
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+-----------------------------
Description changed by duck_:

Old description:

> 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 $_POST['allusers'].
>
> Related: #13918

New description:

 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 $_POST['allusers'].

 Related: [13918]

--

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17905#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list