Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#9003 closed defect (bug) (fixed)

Deleting Parent Comment Causes Child Comments To Be Incorrectly Displayed

Reported by: gogoplata's profile gogoplata Owned by:
Milestone: 2.7.2 Priority: normal
Severity: normal Version: 2.7
Component: Comments Keywords: has-patch
Focuses: Cc:

Description

When comment threading is enabled and a parent comment is deleted it's child comments are incorrectly displayed below all other comments, regardless of the time they were made. Deleting a parent comment should cause child comments to default to no parent and display in the comment list chronologically.

Attachments (1)

9003.diff (602 bytes) - added by vladimir_kolesnikov 16 years ago.

Download all attachments as: .zip

Change History (5)

#1 @mrmist
16 years ago

  • Keywords needs-patch added
  • Version set to 2.7

Or optionally the "deleted" parent could be replaced by a placeholder, so that the other comments do not lose all their context..

#2 @vladimir_kolesnikov
16 years ago

  • Keywords has-patch added; needs-patch removed

Attached is the patch that reassigns all children of the deleted comment to its parent (or 0 if the deleted comment is a top level one).

#3 @ryan
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [10762]) Reparent children when deleting a comment. Props vladimir_kolesnikov. fixes #9003

#4 @ryan
16 years ago

(In [10763]) Reparent children when deleting a comment. Props vladimir_kolesnikov. fixes #9003 for 2.7

Note: See TracTickets for help on using tickets.