[wp-trac] [WordPress Trac] #7531: Enhancement for Akismet
WordPress Trac
wp-trac at lists.automattic.com
Sat Aug 16 20:23:31 GMT 2008
#7531: Enhancement for Akismet
--------------------------+-------------------------------------------------
Reporter: ozh | Owner: matt
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Optimization | Version:
Severity: normal | Keywords: akismet, has-patch, spam
--------------------------+-------------------------------------------------
(not even sure this is the proper place to do so...)
I have an enhancement proposal for Akismet: when catching a spam, don't
return to comment page afterwards but instead clearly show the spammer
that the comment was rejected.
Basically, when catching spam:
{{{
add_filter('comment_post_redirect', 'akismet_reject_screen');
function akismet_reject_screen() {
header('HTTP/1.1 403 Forbidden');
wp_die(__('Sorry, your comment was considered as spam and
rejected'));
}
}}}
I don't see the point in wasting bandwidth, CPU and DB queries to show a
page to someone who has been identified as a spammer :)
(other minor "enhancement" included: Matt's URL updated:)
--
Ticket URL: <http://trac.wordpress.org/ticket/7531>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list