Skip to content

Commit 4b44a79

Browse files
Cleanup
1 parent e09bfd8 commit 4b44a79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-includes/comment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,7 +1583,7 @@ function wp_trash_comment( $comment_id ) {
15831583
if ( ! EMPTY_TRASH_DAYS ) {
15841584
$comment = get_comment( $comment_id );
15851585
$success = wp_delete_comment( $comment_id, true );
1586-
// Also delete descendants of top level 'note' type comments.
1586+
// Also delete children of top level 'note' type comments.
15871587
if ( $comment && 'note' === $comment->comment_type && 0 === (int) $comment->comment_parent ) {
15881588
$children = $comment->get_children(
15891589
array(
@@ -1637,7 +1637,7 @@ function wp_trash_comment( $comment_id ) {
16371637
*/
16381638
do_action( 'trashed_comment', $comment->comment_ID, $comment );
16391639

1640-
// For top level 'note' type comments, also trash any descendants as well.
1640+
// For top level 'note' type comments, also trash children.
16411641
if ( 'note' === $comment->comment_type && 0 === (int) $comment->comment_parent ) {
16421642
$children = $comment->get_children(
16431643
array(

0 commit comments

Comments
 (0)