From 1bacb00c0147b0ddbfe97ae46ac8de48a09a171d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helen=20Hou-Sand=C3=AD?= Date: Thu, 1 Oct 2015 01:49:25 +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. Built from https://develop.svn.wordpress.org/trunk@34726 git-svn-id: http://core.svn.wordpress.org/trunk@34690 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/options-discussion.php | 2 +- wp-includes/comment-functions.php | 2 +- wp-includes/version.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/options-discussion.php b/wp-admin/options-discussion.php index 525c83d1f4..02b4379526 100644 --- a/wp-admin/options-discussion.php +++ b/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/wp-includes/comment-functions.php b/wp-includes/comment-functions.php index 453b5a8107..fd6803a745 100644 --- a/wp-includes/comment-functions.php +++ b/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'; } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 00b49e3d40..9042c8a136 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.