[wp-trac] [WordPress Trac] #17928: When a comment is spammed/trashed, change the parent of it's children

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 29 06:42:12 UTC 2011


#17928: When a comment is spammed/trashed, change the parent of it's children
--------------------------+----------------------------
 Reporter:  Viper007Bond  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Future Release
Component:  Comments      |    Version:  3.2
 Severity:  normal        |   Keywords:  needs-patch
--------------------------+----------------------------
 When removing (spam/trash) a comment that has children, everything goes to
 hell in terms of hierarchy and you're left with a bunch of orphaned
 comments.

 See two attached images for what currently happens after removing a
 comment that has children.

 When a comment is removed, all immediate children of the comment to be
 removed should have their parent changed that of the the parent of the
 comment being removed (or top level if the comment to be removed is top
 level). Each comment that has it's parent changed then gets that action
 logged to it's post meta so that it can be moved back in the case of it's
 previous comment being restored (on post un-delete/spam, find all matching
 comment metas).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17928>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list