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.

Built from https://develop.svn.wordpress.org/trunk@34726


git-svn-id: http://core.svn.wordpress.org/trunk@34690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí
2015-10-01 01:49:25 +00:00
parent 3d6f53da06
commit 1bacb00c01
3 changed files with 3 additions and 3 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';
}
}

View File

@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-34725';
$wp_version = '4.4-alpha-34726';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.