WordPress.org

Make WordPress Core

Changeset 3284


Ignore:
Timestamp:
12/10/2005 07:03:22 PM (16 years ago)
Author:
ryan
Message:

Add richedit_pre filter. Props mani_monaj. fixes #2047

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.