From c62fc9985f0f67f207377f18081dfa7a1ecd025f Mon Sep 17 00:00:00 2001 From: Mike Little Date: Sat, 24 May 2003 23:44:19 +0000 Subject: [PATCH] Fixed doubling of faked excerpt in rss/rdf mode git-svn-id: https://develop.svn.wordpress.org/trunk@91 602fd350-edb4-49c9-b593-d223f7449a82 --- 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() {