Support » Fixing WordPress » Take off flood control?

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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)

    Thread Starter xrocknroll

    (@xrocknroll)

    Thanks =3

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Take off flood control?’ is closed to new replies.