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/query.php

    r6341 r6364  
    729729
    730730    function &get_posts() {
    731         global $wpdb, $pagenow, $user_ID;
     731        global $wpdb, $user_ID;
    732732
    733733        do_action_ref_array('pre_get_posts', array(&$this));
     
    742742        $whichcat = '';
    743743        $whichauthor = '';
    744         $whichpage = '';
    745         $result = '';
    746744        $where = '';
    747745        $limits = '';
     
    789787            $q['page'] = abs($q['page']);
    790788        }
    791 
    792         $add_hours = intval(get_option('gmt_offset'));
    793         $add_minutes = intval(60 * (get_option('gmt_offset') - $add_hours));
    794         $wp_posts_post_date_field = "post_date"; // "DATE_ADD(post_date, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)";
    795789
    796790        // If a month is specified in the querystring, load that month
     
    14961490// Setup global post data.
    14971491function setup_postdata($post) {
    1498     global $id, $postdata, $authordata, $day, $currentmonth, $page, $pages, $multipage, $more, $numpages, $wp_query;
    1499     global $pagenow;
     1492    global $id, $authordata, $day, $currentmonth, $page, $pages, $multipage, $more, $numpages;
    15001493
    15011494    $id = (int) $post->ID;
Note: See TracChangeset for help on using the changeset viewer.