diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php
index b87844b..567a055 100644
--- a/wp-includes/comment-template.php
+++ b/wp-includes/comment-template.php
@@ -506,20 +506,25 @@ function comment_date( $d = '', $comment_ID = 0 ) {
  */
 function get_comment_excerpt( $comment_ID = 0 ) {
 	$comment = get_comment( $comment_ID );
-	$comment_text = strip_tags($comment->comment_content);
-	$blah = explode(' ', $comment_text);
-	if (count($blah) > 20) {
-		$k = 20;
-		$use_dotdotdot = 1;
+	$comment_text = strip_tags( $comment->comment_content );
+	$words = explode( ' ', $comment_text );
+	$excerpt_length = apply_filters( 'comment_excerpt_length', 20 );
+	$excerpt = '';
+
+	if ( count( $words ) > $excerpt_length ) {
+		$k = $excerpt_length;
+		$use_ellipsis = 1;
 	} else {
-		$k = count($blah);
-		$use_dotdotdot = 0;
+		$k = count( $words );
+		$use_ellipsis = 0;
 	}
-	$excerpt = '';
-	for ($i=0; $i<$k; $i++) {
-		$excerpt .= $blah[$i] . ' ';
+
+	for ( $i = 0; $i < $k; $i++ ) {
+		$excerpt .= $words[ $i ] . ' ';
 	}
-	$excerpt .= ($use_dotdotdot) ? '&hellip;' : '';
+
+	$excerpt .= ( 1 === $use_ellipsis ? '&hellip;' : '' );
+
 	return apply_filters('get_comment_excerpt', $excerpt);
 }
 
