Ticket #2548: ent2ncr.diff

File ent2ncr.diff, 472 bytes (added by random, 6 years ago)
  • functions-formatting.php

     
    10011001                '♦' => '♦' 
    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 
    10101007function wp_richedit_pre($text) {