Make WordPress Core

Changeset 910


Ignore:
Timestamp:
02/22/2004 02:39:04 PM (21 years ago)
Author:
saxmatt
Message:

Undefined function typo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-post.php

    r896 r910  
    1111add_filter('the_content', 'wpautop');
    1212
     13add_filter('the_excerpt', 'remove_slashes', 5);
    1314add_filter('the_excerpt', 'convert_smilies');
    14 add_filter('the_excerpt', 'autop');
    1515add_filter('the_excerpt', 'convert_chars');
    1616add_filter('the_excerpt', 'wpautop');
     
    174174function get_the_excerpt($fakeit = true) {
    175175    global $id, $post;
    176     global $HTTP_SERVER_VARS, $preview, $cookiehash;
     176    global $cookiehash;
    177177    $output = '';
    178178    $output = stripslashes($post->post_excerpt);
     
    183183        }
    184184    }
    185     //if we haven't got an excerpt, make one in the style of the rss ones
     185
     186    // If we haven't got an excerpt, make one in the style of the rss ones
    186187    if (($output == '') && $fakeit) {
    187         $output = get_the_content();
     188        $output = $post->post_content;
    188189        $output = strip_tags($output);
    189190        $blah = explode(' ', $output);
     
    203204        $output = $excerpt;
    204205    } // end if no excerpt
    205     if ($preview) { // preview fix for javascript bug with foreign languages
    206         $output =  preg_replace('/\%u([0-9A-F]{4,4})/e',  "'&#'.base_convert('\\1',16,10).';'", $output);
    207     }
    208206    return $output;
    209207}
Note: See TracChangeset for help on using the changeset viewer.