Faster remove accents. Props skeltoac. fixes #2978

git-svn-id: https://develop.svn.wordpress.org/trunk@4050 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-07-26 22:55:36 +00:00
parent 0dab1b7f5b
commit 852bc46505

View File

@@ -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