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
This commit is contained in:
Helen Hou-Sandi
2015-10-01 01:48:14 +00:00
parent 3725408616
commit f737a197c2
2 changed files with 2 additions and 2 deletions

View File

@@ -673,7 +673,7 @@ function wp_allow_comment( $commentdata ) {
$commentdata['comment_author_IP'],
$commentdata['comment_agent']
) ) {
$approved = 'spam';
$approved = EMPTY_TRASH_DAYS ? 'trash' : 'spam';
}
}