WordPress.org

Make WordPress Core

Ticket #16432: 16432.diff

File 16432.diff, 451 bytes (added by GaryJ, 4 years ago)

Add filter on return value of ent2ncr

  • wp-includes/formatting.php

     
    21352135                '♦' => '♦' 
    21362136        ); 
    21372137 
    2138         return str_replace( array_keys($to_ncr), array_values($to_ncr), $text ); 
     2138        return apply_filters( 'ent2ncr', str_replace( array_keys($to_ncr), array_values($to_ncr), $text ), $text ); 
    21392139} 
    21402140 
    21412141/**