Make WordPress Core


Ignore:
Timestamp:
05/24/2003 11:14:04 PM (21 years ago)
Author:
mikelittle
Message:

Fix re excerpts. Don't fake 'em on b2edit page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/b2-include/b2template.functions.php

    r83 r87  
    465465
    466466function the_excerpt_rss($cut = 0, $encode_html = 0) {
    467     $excerpt = get_the_excerpt();
     467    $excerpt = get_the_excerpt(true);
    468468    $excerpt = convert_bbcode($excerpt);
    469469    $excerpt = convert_gmcode($excerpt);
     
    508508}
    509509
    510 function get_the_excerpt() {
     510function get_the_excerpt($fakeit = false) {
    511511    global $id,$postdata;
    512512    global $HTTP_SERVER_VARS, $preview;
     
    514514    $output = $postdata['Excerpt'];
    515515    //if we haven't got an excerpt, make one in the style of the rss ones
    516     if ($output == '') {
     516    if (($output == '') && $fakeit) {
    517517        $output = get_the_content();
    518518        $output = strip_tags($output);
Note: See TracChangeset for help on using the changeset viewer.