Make WordPress Core

Changeset 4050


Ignore:
Timestamp:
07/26/2006 10:55:36 PM (20 years ago)
Author:
ryan
Message:

Faster remove accents. Props skeltoac. fixes #2978

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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(
Note: See TracChangeset for help on using the changeset viewer.