Make WordPress Core


Ignore:
Timestamp:
12/06/2007 07:49:33 PM (17 years ago)
Author:
ryan
Message:

Remove unused vars. Props DD32. see #5418

File:
1 edited

Legend:

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

    r6228 r6364  
    8282
    8383function get_the_content($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
    84     global $id, $post, $more, $single, $withcomments, $page, $pages, $multipage, $numpages;
    85     global $preview;
    86     global $pagenow;
     84    global $id, $post, $more, $page, $pages, $multipage, $preview, $pagenow;
     85
    8786    $output = '';
    8887
     
    138137
    139138
    140 function get_the_excerpt($deprecated = true) {
    141     global $id, $post;
     139function get_the_excerpt($deprecated = '') {
     140    global $post;
    142141    $output = '';
    143142    $output = $post->post_excerpt;
     
    168167    extract( $r, EXTR_SKIP );
    169168
    170     global $post, $id, $page, $numpages, $multipage, $more, $pagenow;
     169    global $post, $page, $numpages, $multipage, $more, $pagenow;
    171170    if ( $more_file != '' )
    172171        $file = $more_file;
     
    250249// this will probably change at some point...
    251250function the_meta() {
    252     global $id;
    253 
    254251    if ( $keys = get_post_custom_keys() ) {
    255252        echo "<ul class='post-meta'>\n";
     
    386383    if ( !$post = & get_post($id) )
    387384        return false;
    388 
    389     $imagedata = wp_get_attachment_metadata( $post->ID );
    390385
    391386    $file = get_attached_file( $post->ID );
Note: See TracChangeset for help on using the changeset viewer.