Code Duplication    Length = 3-3 lines in 2 locations

src/wp-includes/comment.php 2 locations

@@ 1131-1133 (lines=3) @@
1128
function wp_check_comment_data_max_lengths( $comment_data ) {
1129
	$max_lengths = wp_get_comment_fields_max_lengths();
1130
1131
	if ( isset( $comment_data['comment_author'] ) && mb_strlen( $comment_data['comment_author'], '8bit' ) > $max_lengths['comment_author'] ) {
1132
		return new WP_Error( 'comment_author_column_length', __( '<strong>ERROR</strong>: your name is too long.' ), 200 );
1133
	}
1134
1135
	if ( isset( $comment_data['comment_author_email'] ) && strlen( $comment_data['comment_author_email'] ) > $max_lengths['comment_author_email'] ) {
1136
		return new WP_Error( 'comment_author_email_column_length', __( '<strong>ERROR</strong>: your email address is too long.' ), 200 );
@@ 1143-1145 (lines=3) @@
1140
		return new WP_Error( 'comment_author_url_column_length', __( '<strong>ERROR</strong>: your url is too long.' ), 200 );
1141
	}
1142
1143
	if ( isset( $comment_data['comment_content'] ) && mb_strlen( $comment_data['comment_content'], '8bit' ) > $max_lengths['comment_content'] ) {
1144
		return new WP_Error( 'comment_content_column_length', __( '<strong>ERROR</strong>: your comment is too long.' ), 200 );
1145
	}
1146
1147
	return true;
1148
}