Ticket #2047: imhungry.diff

File imhungry.diff, 707 bytes (added by skeltoac, 6 years ago)
  • wp-includes/functions-formatting.php

     
    995995 
    996996function wp_richedit_pre($text) { 
    997997        // Filtering a blank results in an annoying <br />\n 
    998         if ( empty($text) ) return '<p> </p>'; 
     998        if ( empty($text) ) return apply_filters('richedit_pre', ''); 
    999999 
    10001000        $output = $text; 
    10011001        $output = convert_chars($output); 
     
    10051005        $output = str_replace('&lt;', '&amp;lt;', $output); 
    10061006        $output = str_replace('&gt;', '&amp;gt;', $output); 
    10071007 
    1008         return $output; 
     1008        return apply_filters('richedit_pre', $output); 
    10091009} 
    10101010 
    10111011?>