(1.5 Bug Fix) Plugin URI: http://kimmo.suominen.com/sw/wp-1.5-bugs/ Description: Call formatting filters for generated excerpts and RSS excerpts. You probably want to enable this if you are using Markdown, Textile or other markup filters. Author: Kimmo Suominen Version: 1.5.1 Author URI: http://kimmo.suominen.com/ */ class FormatExcerpt { function FormatExcerpt() { remove_filter('get_the_excerpt', 'wp_trim_excerpt'); add_filter('get_the_excerpt', array(&$this, 'fake_excerpt')); add_filter('the_excerpt_rss', array(&$this, 'format_rss_excerpt'), 6); } function fake_excerpt($text) { global $post; if ( '' == $text ) { $text = $post->post_content; $text = apply_filters('the_content', $text); $text = str_replace(']]>', ']]>', $text); $text = strip_tags($text); $excerpt_length = 55; $words = explode(' ', $text, $excerpt_length + 1); if (count($words) > $excerpt_length) { array_pop($words); array_push($words, '[...]'); $text = implode(' ', $words); } } return $text; } function format_rss_excerpt($text) { return apply_filters('the_excerpt', $text); } } $wppFormatExcerpt = new FormatExcerpt; ?>