Ticket #265 (closed defect: fixed)

Opened 1 year ago

Last modified 8 months ago

Override 15 second rule for siteadmins

Reported by: drmike Assigned to: somebody
Priority: normal Milestone: WPMU 2.0
Component: component1 Version: 2.0
Severity: normal Keywords:
Cc: theapparatus@gmail.com

Description

Greets;

bbpress has this setting where the 30 second rule between postss can be overridden for specific users.

Can we get this for wpmu as well for comments?

I see in the code (function wp_throttle_comment_flood) where this test is made. How about a check against a user option to override?

Thanks, -drmike

Attachments

flood_comment.patch (0.5 kB) - added by momo360modena on 10/18/07 15:18:54.

Change History

03/02/07 19:33:47 changed by drmike

  • version set to 2.0.
  • milestone set to WPMU 2.0.

10/18/07 15:18:44 changed by momo360modena

It's a wordpress request no ? Ask to WordPress? Trac ?

See patch :)

10/18/07 15:18:54 changed by momo360modena

  • attachment flood_comment.patch added.

10/18/07 19:32:45 changed by drmike

Actually it's a wpmu issue which is why I made the ticket here. I asked for site admin which would be in charge of the entire wpmu install, not for blog admin who are in charge of just a single blog.

10/18/07 19:33:25 changed by drmike

Thanks though for the patch.

11/23/07 12:31:49 changed by donncha

  • status changed from new to closed.
  • resolution set to fixed.

This would be better done in a plugin. The following code snippet will remove wp_throttle_comment_flood from the comment_flood_filter filter. Wrap it in a function that kicks off on 'init'.

if( is_site_admin() )
    remove_filter( 'comment_flood_filter', 'wp_throttle_comment_flood' );