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

WordPress Trac noreply at wordpress.org
Wed Sep 10 23:01:29 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:
---------------------------------------+-----------------------------
Changes (by SirLouen):

 * keywords:  needs-patch has-test-info close => has-test-info 2nd-opinion


Comment:

 @peterwilsoncc I can agree that the advanced proposal to have
 placeholders, could be part of a plugin.

 The problem, though, is still there: you delete a comment, and the child
 becomes the parent.

 Another option could be simply trashing all the parent tree under the
 parent removed… Maybe adding a double check when removing a parent with
 children.

 But definitely converting a child into a parent is not acceptable, it is a
 clear defect.

 I have not reviewed the code, but even a hook action to override the
 behaviour could be also an option. What do you say @yashjawale ?

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


More information about the wp-trac mailing list