WordPress.org

Ready to get started?Download WordPress

Forums

Take off flood control? (3 posts)

  1. xrocknroll
    Member
    Posted 7 years ago #

    How do you remove flood control? >_< Or at least lower it?

  2. Peavy
    Member
    Posted 6 years ago #

    Edit wp-includes/comment.php
    Add comments to the conditional statement after // Simple flood-protection

    ex:

    // Simple flood-protection
    	/* Your Comment here */
    	/* *
    	if ( $lasttime = $wpdb->get_var("SELECT comment_date_gmt FROM $wpdb->comments WHERE comment_author_IP = '$comment_author_IP' OR comment_author_email = '$comment_author_email' ORDER BY comment_date DESC LIMIT 1") ) {
    		$time_lastcomment = mysql2date('U', $lasttime);
    		$time_newcomment  = mysql2date('U', $comment_date_gmt);
    		$flood_die = apply_filters('comment_flood_filter', false, $time_lastcomment, $time_newcomment);
    
    		if ( $flood_die ) {
    			do_action('comment_flood_trigger', $time_lastcomment, $time_newcomment);
    			wp_die( __('You are posting comments too quickly.  Slow down.') );
    		}
    	}
    	/* */

    Peavy 8)

  3. xrocknroll
    Member
    Posted 6 years ago #

    Thanks =3

Topic Closed

This topic has been closed to new replies.

About this Topic