Add missing global and remove unused var. Props JeremyVisser. fixes #4818
git-svn-id: http://svn.automattic.com/wordpress/trunk@5944 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
62f60a666d
commit
86932908e3
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue