Make WordPress Core

Opened 20 years ago

Closed 20 years ago

#3175 closed enhancement (fixed)

Allow plugins to alter comment flood behavior

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

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 20 years ago.
Patch for /trunk/
vroom_vroom.diff (1.8 KB ) - added by markjaquith 20 years ago.
Pushing the "spammers as a motorcycle gang" metaphor a little too far

Download all attachments as: .zip

Change History (8)

@markjaquith
20 years ago

Patch for /trunk/

#1 @markjaquith
20 years ago

  • Owner changed from anonymous to markjaquith
  • Status newassigned
  • Type defectenhancement

Patch is up.

#2 @westi
20 years ago

  • Keywords commit added

This looks like a very good idea to me.

#4 @ryan
20 years ago

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

@markjaquith
20 years ago

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

#5 @markjaquith
20 years ago

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

#6 @ryan
20 years ago

  • Resolutionfixed
  • Status assignedclosed

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

Note: See TracTickets for help on using tickets.