Changeset 3284

Show
Ignore:
Timestamp:
12/10/05 19:03:22 (3 years ago)
Author:
ryan
Message:

Add richedit_pre filter. Props mani_monaj. fixes #2047

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/functions-formatting.php

    r3276 r3284  
    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; 
     
    10061006    $output = str_replace('&gt;', '&amp;gt;', $output); 
    10071007 
    1008     return $output
     1008    return apply_filters('richedit_pre', $output)
    10091009} 
    10101010