File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments