From f737a197c22c2bf9c7958e9685ab015b8a1e2e26 Mon Sep 17 00:00:00 2001 From: Helen Hou-Sandi Date: Thu, 1 Oct 2015 01:48:14 +0000 Subject: [PATCH] Comments: Trash blacklisted comments by default. If trash is disabled, they wil continue to go into spam like they do now. props wonderboymusic, solarissmoke, MikeHansenMe. fixes #7051. git-svn-id: https://develop.svn.wordpress.org/trunk@34726 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/options-discussion.php | 2 +- src/wp-includes/comment-functions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/options-discussion.php b/src/wp-admin/options-discussion.php index 525c83d1f4..02b4379526 100644 --- a/src/wp-admin/options-discussion.php +++ b/src/wp-admin/options-discussion.php @@ -158,7 +158,7 @@ printf( __('Comments should be displayed with the %s comments at the top of each
-

+

diff --git a/src/wp-includes/comment-functions.php b/src/wp-includes/comment-functions.php index 453b5a8107..fd6803a745 100644 --- a/src/wp-includes/comment-functions.php +++ b/src/wp-includes/comment-functions.php @@ -673,7 +673,7 @@ function wp_allow_comment( $commentdata ) { $commentdata['comment_author_IP'], $commentdata['comment_agent'] ) ) { - $approved = 'spam'; + $approved = EMPTY_TRASH_DAYS ? 'trash' : 'spam'; } }