From 9b4a30290fc0ab88dc24730d12e4e30ad3f67a22 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 26 Aug 2007 17:12:31 +0000 Subject: [PATCH] Add missing global and remove unused var. Props JeremyVisser. fixes #4818 git-svn-id: https://develop.svn.wordpress.org/trunk@5944 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/general-template.php | 2 +- wp-includes/query.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index cb3df3b01e..d6c79fcb46 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -698,7 +698,7 @@ function the_date_xml() { function the_date($d='', $before='', $after='', $echo = true) { - global $id, $post, $day, $previousday, $newday; + global $id, $post, $day, $previousday; $the_date = ''; if ( $day != $previousday ) { $the_date .= $before; diff --git a/wp-includes/query.php b/wp-includes/query.php index 182e674b93..d5334e1486 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -1389,7 +1389,7 @@ function wp_old_slug_redirect () { // Setup global post data. function setup_postdata($post) { - global $id, $postdata, $authordata, $day, $page, $pages, $multipage, $more, $numpages, $wp_query; + global $id, $postdata, $authordata, $day, $currentmonth, $page, $pages, $multipage, $more, $numpages, $wp_query; global $pagenow; $id = (int) $post->ID;