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/general-template.php

    r6343 r6364  
    165165    $cat = get_query_var('cat');
    166166    $tag = get_query_var('tag_id');
    167     $p = get_query_var('p');
    168     $name = get_query_var('name');
    169167    $category_name = get_query_var('category_name');
    170168    $author = get_query_var('author');
     
    386384        $archive_week_end_date_format = get_option('date_format');
    387385    }
    388 
    389     $add_hours = intval(get_option('gmt_offset'));
    390     $add_minutes = intval(60 * (get_option('gmt_offset') - $add_hours));
    391386
    392387    //filters
     
    525520
    526521function get_calendar($initial = true) {
    527     global $wpdb, $m, $monthnum, $year, $timedifference, $wp_locale, $posts;
     522    global $wpdb, $m, $monthnum, $year, $wp_locale, $posts;
    528523
    529524    $key = md5( $m . $monthnum . $year );
     
    548543    // week_begins = 0 stands for Sunday
    549544    $week_begins = intval(get_option('start_of_week'));
    550     $add_hours = intval(get_option('gmt_offset'));
    551     $add_minutes = intval(60 * (get_option('gmt_offset') - $add_hours));
    552545
    553546    // Let's figure out when we are
     
    561554        $thismonth = $wpdb->get_var("SELECT DATE_FORMAT((DATE_ADD('${thisyear}0101', INTERVAL $d DAY) ), '%m')");
    562555    } elseif ( !empty($m) ) {
    563         $calendar = substr($m, 0, 6);
    564556        $thisyear = ''.intval(substr($m, 0, 4));
    565557        if ( strlen($m) < 6 )
     
    756748
    757749function the_date($d='', $before='', $after='', $echo = true) {
    758     global $id, $post, $day, $previousday;
     750    global $post, $day, $previousday;
    759751    $the_date = '';
    760752    if ( $day != $previousday ) {
     
    843835
    844836function the_weekday() {
    845     global $wp_locale, $id, $post;
     837    global $wp_locale, $post;
    846838    $the_weekday = $wp_locale->get_weekday(mysql2date('w', $post->post_date));
    847839    $the_weekday = apply_filters('the_weekday', $the_weekday);
     
    851843
    852844function the_weekday_date($before='',$after='') {
    853     global $wp_locale, $id, $post, $day, $previousweekday;
     845    global $wp_locale, $post, $day, $previousweekday;
    854846    $the_weekday_date = '';
    855847    if ( $day != $previousweekday ) {
Note: See TracChangeset for help on using the changeset viewer.