Opened 15 years ago
Closed 15 years ago
#12188 closed enhancement (fixed)
Add filters to duplicate comment message and comment flood message
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Comments | Keywords: | has-patch |
Focuses: | Cc: |
Description
Pretty self explanatory..
Attachments (1)
Change History (5)
#3
@
15 years ago
- Owner set to nacin
- Status changed from new to accepted
Okay, +1 was with some caveats. You can already hypothetically filter the text itself with the gettext filter.
There is already an action, comment_flood_trigger, which is executed before the die()/wp_die() in the flood message. I'm adding a comment_duplicate_trigger as a complement.
Note: See
TracTickets for help on using
tickets.
+1, though I think it would be better as an action instead, just before the DOING_AJAX check. That way, you can die with your own message, or perhaps do something else, like redirect back to the post and show a message of your own.