From 0b868edb8ed20a7d028d5efcee24c677947bb7c3 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Mon, 27 Apr 2015 16:10:50 +0000 Subject: [PATCH] When deleting suspicious comments, do so permanently. git-svn-id: https://develop.svn.wordpress.org/trunk@32310 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/upgrade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/upgrade.php b/src/wp-admin/includes/upgrade.php index f5f4efedcb..146d6a8750 100644 --- a/src/wp-admin/includes/upgrade.php +++ b/src/wp-admin/includes/upgrade.php @@ -1460,7 +1460,7 @@ function upgrade_430() { ); foreach ( $comments as $comment ) { - wp_delete_comment( $comment->comment_ID ); + wp_delete_comment( $comment->comment_ID, true ); } } }