jon-b
4/27/2015 - 4:29 PM

meanwhile.php

<?php
add_filter( 'pre_comment_content', 'jb_xss_comment_overflow_protection');
function jb_xss_comment_overflow_protection( $content ) {
	if ( strlen( $content ) > 64000 ) {
		wp_die( 'Invalid comment.' );
	}
	return $content;
}