WordPress.org

Make WordPress Core

Ticket #4818: 4818.2.diff

File 4818.2.diff, 995 bytes (added by JeremyVisser, 8 years ago)

Fixes both problems described.

  • wp-includes/query.php

     
    13891389 
    13901390// Setup global post data. 
    13911391function setup_postdata($post) { 
    1392         global $id, $postdata, $authordata, $day, $page, $pages, $multipage, $more, $numpages, $wp_query; 
     1392        global $id, $postdata, $authordata, $day, $currentmonth, $page, $pages, $multipage, $more, $numpages, $wp_query; 
    13931393        global $pagenow; 
    13941394 
    13951395        $id = (int) $post->ID; 
  • wp-includes/general-template.php

     
    698698 
    699699 
    700700function the_date($d='', $before='', $after='', $echo = true) { 
    701         global $id, $post, $day, $previousday, $newday; 
     701        global $id, $post, $day, $previousday; 
    702702        $the_date = ''; 
    703703        if ( $day != $previousday ) { 
    704704                $the_date .= $before;