Ticket #5439: recent_query_3.diff

File recent_query_3.diff, 433 bytes (added by ionfish, 7 months ago)
  • wp-includes/query.php

    old new  
    2727        $GLOBALS['wp_query'] =& $GLOBALS['wp_the_query']; 
    2828        global $wp_query; 
    2929        if ( !empty($wp_query->post) ) { 
    30                 $GLOBALS['post'] = $wp_query->post
     30                $GLOBALS['post'] = $wp_query->next_post()
    3131                setup_postdata($wp_query->post); 
    3232        } 
    3333}