mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
ent2ncr optimization. Props random. fixes #2548
git-svn-id: http://svn.automattic.com/wordpress/trunk@3641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5b10d4b1e0
commit
898d025430
@ -1001,10 +1001,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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user