Make WordPress Core

Ticket #5157: dead_query_code.diff

File dead_query_code.diff, 628 bytes (added by filosofo, 18 years ago)
  • wp-includes/query.php

     
    789789                        $q['page'] = abs($q['page']);
    790790                }
    791791
    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)";
    795 
    796792                // If a month is specified in the querystring, load that month
    797793                if ( $q['m'] ) {
    798794                        $q['m'] = '' . preg_replace('|[^0-9]|', '', $q['m']);