Skip to content

Commit b9c878c

Browse files
No need to set success, already true here
1 parent a14f848 commit b9c878c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/wp-includes/comment.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,6 @@ function wp_trash_comment( $comment_id ) {
15981598
)
15991599
);
16001600

1601-
$success = true;
16021601
foreach ( $children as $child_id ) {
16031602
if ( ! wp_delete_comment( $child_id, true ) ) {
16041603
$success = false;

0 commit comments

Comments
 (0)