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
This commit is contained in:
Ryan Boren 2007-08-26 17:12:31 +00:00
parent 1790de0c16
commit 9b4a30290f
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;