Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#3175 closed enhancement (fixed)

Allow plugins to alter comment flood behavior

Reported by: markjaquith's profile markjaquith Owned by: markjaquith's profile markjaquith
Milestone: 2.1 Priority: low
Severity: minor Version: 2.0.4
Component: General Keywords: has-patch commit
Focuses: Cc:

Description

Currently, the 15 second rule for comment posting is rigidly coded. You can decide what happens before the die(), but it's always 15 seconds, and you can't stop the die().

The patch I'm uploading converts the 15 second rule to a filter, and creates a new filter. Plugins can hook in, examine the time difference, and make their own block decision.

Default behavior isn't changed, it just allows people to circumvent it.

Attachments (2)

flood.diff (1.8 KB) - added by markjaquith 18 years ago.
Patch for /trunk/
vroom_vroom.diff (1.8 KB) - added by markjaquith 18 years ago.
Pushing the "spammers as a motorcycle gang" metaphor a little too far

Download all attachments as: .zip

Change History (8)

@markjaquith
18 years ago

Patch for /trunk/

#1 @markjaquith
18 years ago

  • Owner changed from anonymous to markjaquith
  • Status changed from new to assigned
  • Type changed from defect to enhancement

Patch is up.

#2 @westi
18 years ago

  • Keywords commit added

This looks like a very good idea to me.

#4 @ryan
18 years ago

How about wp_throttle_comment_flood() and 'throttle_comment'? We need to work the word throttle into the source. :-)

@markjaquith
18 years ago

Pushing the "spammers as a motorcycle gang" metaphor a little too far

#5 @markjaquith
18 years ago

What's wrong, lady of the house won't let you get a REAL motorcycle?

#6 @ryan
18 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [4265]) Pluggable comment throttling from Mark Jaquith. fixes #3175

Note: See TracTickets for help on using tickets.