[wp-trac] [WordPress Trac] #35006: Comments sent immediately to Trash for matching keyword blacklist should not generate email notifications
WordPress Trac
noreply at wordpress.org
Sat Dec 26 04:52:06 UTC 2015
#35006: Comments sent immediately to Trash for matching keyword blacklist should
not generate email notifications
----------------------------------+------------------------------
Reporter: scottbrownconsulting | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: 4.4
Severity: normal | Resolution:
Keywords: needs-patch close | Focuses:
----------------------------------+------------------------------
Comment (by scottbrownconsulting):
Basically line 1738 of wp-includes/comment-functions.php could just read
{{{
if ( '1' != $comment->comment_approved ) {
}}}
instead of trying all the possibilities it's checking now. The same
essential logic is good enough for line 1711.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35006#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list