mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user