Make WordPress Core


Ignore:
Timestamp:
01/25/2008 01:41:57 AM (17 years ago)
Author:
ryan
Message:

Restore global post when resetting the query. Props ionfish. fixes #5439

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r6644 r6653  
    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    }
Note: See TracChangeset for help on using the changeset viewer.