Remove unused vars. Props DD32. see #5418

git-svn-id: https://develop.svn.wordpress.org/trunk@6364 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-12-06 19:49:33 +00:00
parent 029a74ca44
commit 3a8b2fcca3
25 changed files with 368 additions and 496 deletions

View File

@@ -728,7 +728,7 @@ class WP_Query {
}
function &get_posts() {
global $wpdb, $pagenow, $user_ID;
global $wpdb, $user_ID;
do_action_ref_array('pre_get_posts', array(&$this));
@@ -741,8 +741,6 @@ class WP_Query {
$distinct = '';
$whichcat = '';
$whichauthor = '';
$whichpage = '';
$result = '';
$where = '';
$limits = '';
$join = '';
@@ -789,10 +787,6 @@ class WP_Query {
$q['page'] = abs($q['page']);
}
$add_hours = intval(get_option('gmt_offset'));
$add_minutes = intval(60 * (get_option('gmt_offset') - $add_hours));
$wp_posts_post_date_field = "post_date"; // "DATE_ADD(post_date, INTERVAL '$add_hours:$add_minutes' HOUR_MINUTE)";
// If a month is specified in the querystring, load that month
if ( $q['m'] ) {
$q['m'] = '' . preg_replace('|[^0-9]|', '', $q['m']);
@@ -1495,8 +1489,7 @@ function wp_old_slug_redirect () {
// Setup global post data.
function setup_postdata($post) {
global $id, $postdata, $authordata, $day, $currentmonth, $page, $pages, $multipage, $more, $numpages, $wp_query;
global $pagenow;
global $id, $authordata, $day, $currentmonth, $page, $pages, $multipage, $more, $numpages;
$id = (int) $post->ID;