Opened 5 years ago
Closed 5 months ago
#902 closed enhancement (fixed)
Enhancement for Akismet
| Reported by: | Ozh | Owned by: | matt |
|---|---|---|---|
| Priority: | normal | Component: | akismet |
| Severity: | normal | Keywords: | akismet, has-patch, akismet-2.6 |
| Cc: |
Description
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:)
Attachments (2)
Change History (11)
Changed 5 years ago by Ozh
comment:1 Changed 3 years ago by tellyworth
- Keywords akismet-2.4 added
I'd suggest we should do the opposite:
Changed 3 years ago by tellyworth
comment:2 Changed 3 years ago by tellyworth
The new patch will:
- redirect rather than die if a comment is discarded
- put the comment in the trash rather than discard it entirely when the akismet_discard_month conditional is satisfied (option is set and the post hasn't been updated in more than 30 days)
For WP versions older than 2.9 (ie without trash support) it should keep the old behaviour.
comment:3 Changed 3 years ago by josephscott
- Resolution set to fixed
- Status changed from new to closed
comment:4 Changed 3 years ago by tellyworth
- Keywords akismet-2.5 added; akismet-2.4 removed
- Resolution fixed deleted
- Status changed from closed to reopened
I reverted [274580] because it was causing confusion (users saw spam going to trash but didn't know why).
Postponing till 2.5. If we can use comment_meta to record why a comment is put in the trash it should eliminate that confusion.
comment:5 Changed 3 years ago by tellyworth
- Keywords akismet-2.5 removed
removing the akismet-2.5 tag for now, till we decide how best to handle this
comment:6 Changed 3 years ago by tellyworth
For 2.5 here's what we'll do:
- Re-word the checkbox label to make the meaning of the akismet_discard_month setting clearer
- Replace the die() with a redirect.
Then re-visit this later, 2.6 perhaps.
comment:7 Changed 3 years ago by tellyworth
Checkbox label was reworded in [292719]
comment:8 Changed 3 years ago by tellyworth
- Keywords akismet-2.6 added
comment:9 Changed 5 months ago by xknown
- Resolution set to fixed
- Status changed from reopened to closed
The mentioned changes were introduced in r319990

Die on spam