WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/23/2008 06:20:59 PM (12 years ago)
Author:
ryan
Message:

Pass remember arg. see #5405

File:
1 edited

Legend:

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

    r6509 r6644  
    2626    unset($GLOBALS['wp_query']);
    2727    $GLOBALS['wp_query'] =& $GLOBALS['wp_the_query'];
     28    global $wp_query;
     29    if ( !empty($wp_query->post) ) {
     30        $GLOBALS['post'] = $wp_query->post;
     31        setup_postdata($wp_query->post);
     32    }
    2833}
    2934
Note: See TracChangeset for help on using the changeset viewer.