[wp-trac] [WordPress Trac] #63931: Deleting a parent comment causes the child to move up a level

WordPress Trac noreply at wordpress.org
Fri Sep 12 12:52:48 UTC 2025


#63931: Deleting a parent comment causes the child to move up a level
---------------------------------------+-----------------------------
 Reporter:  oglekler                   |       Owner:  (none)
     Type:  enhancement                |      Status:  new
 Priority:  normal                     |   Milestone:  Future Release
Component:  Comments                   |     Version:
 Severity:  normal                     |  Resolution:
 Keywords:  has-test-info 2nd-opinion  |     Focuses:
---------------------------------------+-----------------------------

Comment (by SirLouen):

 Replying to [comment:12 peterwilsoncc]:
 > @SirLouen I think this all goes back the suggestion that if a comment
 with a child is trashed, then a warning can be shown in the dashboard if
 that is not already the case.

 A notice will not do the cut for a reason: Imagine a big hierarchy, with
 multiple child comments. You will lose the track fast, and it is a massive
 hassle (imagine a newspaper with a microworking mod team that doesn't have
 much agency on the comment moderating system). Currently there is an
 unexpected behavior, but this is a fragile solution.

 The placeholder thing is a super robust solution. Both for trashed (with
 the ability of restoring) and perma-deleted items (no restoring option
 obviously). Yes, it implies some extra code. If we cannot aim for this
 quality solution, then full hierarchy trashing is not an option.

 Replying to [comment:13 yashjawale]:
 > imo user might expect child comments to get deleted too, as that is what
 trash option implied on the frontend before deleting the comment
 permanently.

 I suppose that auto-removed trashed items would also affect child
 hierarchy.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63931#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list