Index: src/wp-includes/wp-diff.php
===================================================================
--- src/wp-includes/wp-diff.php	(revision 36874)
+++ src/wp-includes/wp-diff.php	(working copy)
@@ -429,22 +429,54 @@
 	 * @param string $string2
 	 * @return int
 	 */
-	public function compute_string_distance( $string1, $string2 ) {
-		// Vectors containing character frequency for all chars in each string
-		$chars1 = count_chars($string1);
-		$chars2 = count_chars($string2);
+	public function compute_string_distance( $string1, $string2 ) {		
 
-		// L1-norm of difference vector.
-		$difference = array_sum( array_map( array($this, 'difference'), $chars1, $chars2 ) );
-
-		// $string1 has zero length? Odd. Give huge penalty by not dividing.
-		if ( !$string1 )
-			return $difference;
-
-		// Return distance per character (of string1).
-		return $difference / strlen($string1);
+		$string_distance = $this->levenshtein( $string1 , $string2 );
+		return $string_distance;
 	}
-
+	
+	/**   
+	 *  Customized Levenshtein Distance that can accept more than 255 characters
+	 *  http://php.net/manual/en/function.levenshtein.php#85387
+	 * @param string $s1
+	 * @param string $s2
+	 * @return int
+	 */
+	public function levenshtein( $s1, $s2 )	{
+		$sleft		= ( strlen( $s1 ) > strlen( $s2 )) ? $s1 : $s2;
+		$sright		= ( strlen( $s1 ) > strlen( $s2 )) ? $s2 : $s1;
+		$nleftlength	= strlen( $sleft );
+		$nrightlength	= strlen( $sright );
+		if ( 0 == $nleftlength ) {
+			return $nrightlength;
+		} elseif ( 0 == $nrightlength ) {
+			return $nleftlength;
+		} elseif ( $sleft === $sright ) {
+			return 0;
+		} elseif ( ( $nleftlength < $nrightlength ) && ( strpos( $sright, $sleft ) !== FALSE) ) {
+			return $nrightlength - $nleftlength;
+		} elseif ( ( $nrightlength < $nleftlength ) && ( strpos( $sleft, $sright ) !== FALSE) ) {
+			return $nleftlength - $nrightlength;
+		} else {
+			$nsdistance = range( 1, $nrightlength + 1 );
+			for ( $nleftpos = 1; $nleftpos <= $nleftlength; ++$nleftpos )	{
+				$cleft = $sleft[ $nleftpos - 1 ];
+				$ndiagonal = $nleftpos - 1;
+				$nsdistance[0] = $nleftpos;
+				for ( $nrightpos = 1; $nrightpos <= $nrightlength; ++$nrightpos )	{
+					$cright = $sright[ $nrightpos - 1 ];
+					$ncost = ( $cright == $cleft ) ? 0 : 1;
+					$nnewdiagonal = $nsdistance[ $nrightpos ];
+					$nsdistance[ $nrightpos ] =
+					min($nsdistance[ $nrightpos ] + 1,
+					$nsdistance[ $nrightpos - 1 ] + 1,
+					$ndiagonal + $ncost);
+					$ndiagonal = $nnewdiagonal;
+				}
+			}
+			return $nsdistance[ $nrightlength ];
+		}
+	}
 	/**
 	 * @ignore
 	 * @since 2.6.0
