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
This commit is contained in:
Mike Little 2003-05-24 23:14:04 +00:00
parent b9b6cd0cb2
commit d287891fe4
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) {
$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);