• Resolved desipio

    (@desipio)


    I can’t figure out how to modify the flood control in 2.5 and I’m getting the posting too quickly error a lot, even on posts that are 10 or 20 minutes apart. In previous versions I could change the 15 second option, but it’s not the same in version 2.5. Any advice?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter desipio

    (@desipio)

    Bumped because I know I’m not the only one having this problem.

    Thread Starter desipio

    (@desipio)

    OK, I fixed it. The <15 is in a different spot in 2.5 but it’s still in wp-includes/comment.php.

    /**
    * wp_throttle_comment_flood() – {@internal Missing Short Description}}
    *
    * {@internal Missing Long Description}}
    *
    * @since 2.1.0
    *
    * @param unknown_type $block {@internal Missing Description}}
    * @param unknown_type $time_lastcomment {@internal Missing Description}}
    * @param unknown_type $time_newcomment {@internal Missing Description}}
    * @return unknown {@internal Missing Description}}
    */
    function wp_throttle_comment_flood($block, $time_lastcomment, $time_newcomment) {
    if ( $block ) // a plugin has already blocked… we’ll let that decision stand
    return $block;
    if ( ($time_newcomment – $time_lastcomment) < 15 )
    return true;
    return false;

    I changed this line:

    if ( ($time_newcomment – $time_lastcomment) < 15 )

    to: if ( ($time_newcomment – $time_lastcomment) < -3800 )

    No more posting too quickly error.

    I’m still not sure why flood control isn’t something you can adjust through Options, though.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Posting too quickly error in 2.5’ is closed to new replies.