[wp-trac] [WordPress Trac] #63931: Deleting a parent comment causes the child to move up a level
WordPress Trac
noreply at wordpress.org
Thu Sep 4 20:32:20 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: Awaiting Review
Component: Comments | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
Use case: Imagine that someone wrote something bad and it was published,
another person replied that "Buddy, you are completely wrong," and then
the admin removed the parent comment. And now the reply appears as related
to the post or comment on a higher level comment that makes no sense.
There can be several approaches:
1. Prevent deleting if a comment has children, and only delete with
children.
2. Keep the comment in the database empty with a placeholder that it was
deleted, and keep children related to it. It can also be shown as deleted
on the front end. I believe that social networks do this way.
3. Move children to pending, also marking that they were related to the
deleted comment.
I count this as a bug, but the fix needs enhancement.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63931>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list