From acf5725b65d60edd6378a57e88369d4fe5994ed3 Mon Sep 17 00:00:00 2001 From: mikelittle Date: Sat, 24 May 2003 23:14:04 +0000 Subject: [PATCH] Fix re excerpts. Don't fake 'em on b2edit page git-svn-id: http://svn.automattic.com/wordpress/trunk@87 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- b2-include/b2template.functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/b2-include/b2template.functions.php b/b2-include/b2template.functions.php index 8864a58acf..a348c1988f 100644 --- a/b2-include/b2template.functions.php +++ b/b2-include/b2template.functions.php @@ -464,7 +464,7 @@ function the_excerpt() { } function the_excerpt_rss($cut = 0, $encode_html = 0) { - $excerpt = get_the_excerpt(); + $excerpt = get_the_excerpt(true); $excerpt = convert_bbcode($excerpt); $excerpt = convert_gmcode($excerpt); $excerpt = convert_chars($excerpt, 'unicode'); @@ -507,13 +507,13 @@ function the_excerpt_unicode() { echo $excerpt; } -function get_the_excerpt() { +function get_the_excerpt($fakeit = false) { global $id,$postdata; global $HTTP_SERVER_VARS, $preview; $output = ''; $output = $postdata['Excerpt']; //if we haven't got an excerpt, make one in the style of the rss ones - if ($output == '') { + if (($output == '') && $fakeit) { $output = get_the_content(); $output = strip_tags($output); $blah = explode(' ', $output);