ent2ncr optimization. Props random. fixes #2548

git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@3742 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-04-22 00:11:08 +00:00
parent 4d999b3f51
commit e28c79f070
1 changed files with 1 additions and 4 deletions

View File

@ -997,10 +997,7 @@ function ent2ncr($text) {
'♦' => '♦' '♦' => '♦'
); );
foreach ($to_ncr as $entity => $ncr) { return str_replace( array_keys($to_ncr), array_values($to_ncr), $text );
$text = str_replace($entity, $ncr, $text);
}
return $text;
} }
function wp_richedit_pre($text) { function wp_richedit_pre($text) {