Changeset 6653

Show
Ignore:
Timestamp:
01/25/08 01:41:57 (7 months ago)
Author:
ryan
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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    }