diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 7735d581a4..f027869fad 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -149,6 +149,9 @@ function utf8_uri_encode( $utf8_string ) { } function remove_accents($string) { + if ( !preg_match('/[\x80-\xff]/', $string) ) + return $string; + if (seems_utf8($string)) { $chars = array( // Decompositions for Latin-1 Supplement