Make WordPress Core

Changeset 3641


Ignore:
Timestamp:
03/14/2006 02:48:36 AM (19 years ago)
Author:
ryan
Message:

ent2ncr optimization. Props random. fixes #2548

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions-formatting.php

    r3577 r3641  
    10021002    );
    10031003
    1004     foreach ($to_ncr as $entity => $ncr) {
    1005         $text = str_replace($entity, $ncr, $text);
    1006     }
    1007     return $text;
     1004    return str_replace( array_keys($to_ncr), array_values($to_ncr), $text );
    10081005}
    10091006
Note: See TracChangeset for help on using the changeset viewer.