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:
parent
1790de0c16
commit
9b4a30290f
@ -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
Block a user