Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#9003 closed defect (bug) (fixed)

Deleting Parent Comment Causes Child Comments To Be Incorrectly Displayed

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

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 18 years ago.

Download all attachments as: .zip

Change History (5)

#1 @mrmist
18 years ago

  • Keywords needs-patch added
  • Version2.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
18 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
18 years ago

  • Resolutionfixed
  • Status newclosed

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

#4 @ryan
18 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.