From 27d747b9b0237f929cdd20bc7afc921cf223c77b Mon Sep 17 00:00:00 2001 From: mikelittle Date: Sat, 24 May 2003 23:44:19 +0000 Subject: [PATCH] Fixed doubling of faked excerpt in rss/rdf mode git-svn-id: http://svn.automattic.com/wordpress/trunk@91 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- b2-include/b2template.functions.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/b2-include/b2template.functions.php b/b2-include/b2template.functions.php index a348c1988f..23bd039c1e 100644 --- a/b2-include/b2template.functions.php +++ b/b2-include/b2template.functions.php @@ -464,23 +464,23 @@ function the_excerpt() { } function the_excerpt_rss($cut = 0, $encode_html = 0) { - $excerpt = get_the_excerpt(true); - $excerpt = convert_bbcode($excerpt); - $excerpt = convert_gmcode($excerpt); - $excerpt = convert_chars($excerpt, 'unicode'); + $output = get_the_excerpt(true); + $output = convert_bbcode($output); + $output = convert_gmcode($output); + $output = convert_chars($output, 'unicode'); if ($cut && !$encode_html) { $encode_html = 2; } if ($encode_html == 1) { - $excerpt = htmlspecialchars($excerpt); + $output = htmlspecialchars($output); $cut = 0; } elseif ($encode_html == 0) { - $excerpt = make_url_footnote($excerpt); + $output = make_url_footnote($output); } elseif ($encode_html == 2) { - $excerpt = strip_tags($excerpt); + $output = strip_tags($output); } if ($cut) { - $blah = explode(' ', $excerpt); + $blah = explode(' ', $output); if (count($blah) > $cut) { $k = $cut; $use_dotdotdot = 1; @@ -492,9 +492,9 @@ function the_excerpt_rss($cut = 0, $encode_html = 0) { $excerpt .= $blah[$i].' '; } $excerpt .= ($use_dotdotdot) ? '...' : ''; - $excerpt = $excerpt; + $output = $excerpt; } - echo $excerpt; + echo $output; } function the_excerpt_unicode() {