Ticket #2978: remove_accents-faster.diff
| File remove_accents-faster.diff, 416 bytes (added by skeltoac, 4 years ago) |
|---|
-
wp-includes/formatting.php
149 149 } 150 150 151 151 function remove_accents($string) { 152 if ( !preg_match('/[\x80-\xff]/', $string) ) 153 return $string; 154 152 155 if (seems_utf8($string)) { 153 156 $chars = array( 154 157 // Decompositions for Latin-1 Supplement
