From d287891fe44dfe879e70ce43cc510f7358497430 Mon Sep 17 00:00:00 2001 From: Mike Little Date: Sat, 24 May 2003 23:14:04 +0000 Subject: [PATCH] Fix re excerpts. Don't fake 'em on b2edit page git-svn-id: https://develop.svn.wordpress.org/trunk@87 602fd350-edb4-49c9-b593-d223f7449a82 --- 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);