We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cef8390 commit a14f848Copy full SHA for a14f848
src/wp-includes/comment.php
@@ -1583,6 +1583,11 @@ function wp_trash_comment( $comment_id ) {
1583
if ( ! EMPTY_TRASH_DAYS ) {
1584
$comment = get_comment( $comment_id );
1585
$success = wp_delete_comment( $comment_id, true );
1586
+
1587
+ if ( ! $success ) {
1588
+ return false;
1589
+ }
1590
1591
// Also delete children of top level 'note' type comments.
1592
if ( $comment && 'note' === $comment->comment_type && 0 === (int) $comment->comment_parent ) {
1593
$children = $comment->get_children(
0 commit comments