Changeset 6364 for trunk/wp-includes/query.php
- Timestamp:
- 12/06/2007 07:49:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r6341 r6364 729 729 730 730 function &get_posts() { 731 global $wpdb, $ pagenow, $user_ID;731 global $wpdb, $user_ID; 732 732 733 733 do_action_ref_array('pre_get_posts', array(&$this)); … … 742 742 $whichcat = ''; 743 743 $whichauthor = ''; 744 $whichpage = '';745 $result = '';746 744 $where = ''; 747 745 $limits = ''; … … 789 787 $q['page'] = abs($q['page']); 790 788 } 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 789 796 790 // If a month is specified in the querystring, load that month … … 1496 1490 // Setup global post data. 1497 1491 function 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; 1500 1493 1501 1494 $id = (int) $post->ID;
Note: See TracChangeset
for help on using the changeset viewer.