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
This commit is contained in:
mikelittle 2003-05-24 23:14:04 +00:00
parent 2544860d49
commit acf5725b65
1 changed files with 3 additions and 3 deletions

View File

@ -464,7 +464,7 @@ function the_excerpt() {
} }
function the_excerpt_rss($cut = 0, $encode_html = 0) { function the_excerpt_rss($cut = 0, $encode_html = 0) {
$excerpt = get_the_excerpt(); $excerpt = get_the_excerpt(true);
$excerpt = convert_bbcode($excerpt); $excerpt = convert_bbcode($excerpt);
$excerpt = convert_gmcode($excerpt); $excerpt = convert_gmcode($excerpt);
$excerpt = convert_chars($excerpt, 'unicode'); $excerpt = convert_chars($excerpt, 'unicode');
@ -507,13 +507,13 @@ function the_excerpt_unicode() {
echo $excerpt; echo $excerpt;
} }
function get_the_excerpt() { function get_the_excerpt($fakeit = false) {
global $id,$postdata; global $id,$postdata;
global $HTTP_SERVER_VARS, $preview; global $HTTP_SERVER_VARS, $preview;
$output = ''; $output = '';
$output = $postdata['Excerpt']; $output = $postdata['Excerpt'];
//if we haven't got an excerpt, make one in the style of the rss ones //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 = get_the_content();
$output = strip_tags($output); $output = strip_tags($output);
$blah = explode(' ', $output); $blah = explode(' ', $output);