Make WordPress Core

Ticket #4679: post_template__formatting.diff

File post_template__formatting.diff, 973 bytes (added by fuggi, 17 years ago)

Two files are changed: formatting.php and post_template.php

  • wp-includes/formatting.php

     
    814814function wp_trim_excerpt($text) { // Fakes an excerpt if needed
    815815        if ( '' == $text ) {
    816816                $text = get_the_content('');
    817                 $text = apply_filters('the_content', $text);
    818817                $text = str_replace(']]>', ']]>', $text);
    819818                $text = strip_tags($text);
    820819                $excerpt_length = 55;
  • wp-includes/post-template.php

     
    127127        if ( $preview ) // preview fix for javascript bug with foreign languages
    128128                $output =       preg_replace('/\%u([0-9A-F]{4,4})/e',   "'&#'.base_convert('\\1',16,10).';'", $output);
    129129
    130         return $output;
     130        return apply_filters('get_the_content', $output);
    131131}
    132132
    133133