mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -673,7 +673,7 @@ function wp_allow_comment( $commentdata ) {
|
||||
$commentdata['comment_author_IP'],
|
||||
$commentdata['comment_agent']
|
||||
) ) {
|
||||
$approved = 'spam';
|
||||
$approved = EMPTY_TRASH_DAYS ? 'trash' : 'spam';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user