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;