Ticket #5157: dead_query_code.diff
| File dead_query_code.diff, 628 bytes (added by , 18 years ago) |
|---|
-
wp-includes/query.php
789 789 $q['page'] = abs($q['page']); 790 790 } 791 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)";795 796 792 // If a month is specified in the querystring, load that month 797 793 if ( $q['m'] ) { 798 794 $q['m'] = '' . preg_replace('|[^0-9]|', '', $q['m']);