[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 5 08:37:41 UTC 2025
#63931: Deleting a parent comment causes the child to move up a level
--------------------------+------------------------------
Reporter: oglekler | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses:
--------------------------+------------------------------
Comment (by yashjawale):
The current code intentionally moves up the child comments if parent is
deleted.
https://core.trac.wordpress.org/ticket/9003#comment:1 also brought up the
approach of having placeholders but looks like the discussion never
progressed
I think it would be better to show placeholder message for deleted parent
comments like @SirLouen suggested.
One approach I could think of is to let the comment go to trash as usual &
modify the display query to also fetch trashed comments, if its a parent
to child comments then display placeholder else ignore rendering it.
This way the comment can be restored by admin.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63931#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list