Make WordPress Core

Changeset 3742


Ignore:
Timestamp:
04/22/2006 12:11:08 AM (20 years ago)
Author:
ryan
Message:

ent2ncr optimization. Props random. fixes #2548

File:
1 edited

Legend:

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

    r3481 r3742  
    998998        );
    999999
    1000         foreach ($to_ncr as $entity => $ncr) {
    1001                 $text = str_replace($entity, $ncr, $text);
    1002         }
    1003         return $text;
     1000        return str_replace( array_keys($to_ncr), array_values($to_ncr), $text );
    10041001}
    10051002
Note: See TracChangeset for help on using the changeset viewer.