Changeset 4050

Show
Ignore:
Timestamp:
07/26/06 22:55:36 (2 years ago)
Author:
ryan
Message:

Faster remove accents. Props skeltoac. fixes #2978

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/formatting.php

    r4011 r4050  
    150150 
    151151function remove_accents($string) { 
     152    if ( !preg_match('/[\x80-\xff]/', $string) ) 
     153        return $string; 
     154 
    152155    if (seems_utf8($string)) { 
    153156        $chars = array(