Ticket #24785: 24785.1.diff
File 24785.1.diff, 584 bytes (added by , 12 years ago) |
---|
-
wp-includes/query.php
3568 3568 global $wp_the_query; 3569 3569 return $wp_the_query === $this; 3570 3570 } 3571 3572 /** 3573 * After looping through a nested query, this function 3574 * restores the $post global to the current post in this query 3575 * 3576 * @return bool 3577 */ 3578 function wp_reset_postdata() { 3579 if ( !empty($this->post) ) { 3580 $GLOBALS['post'] = $this->post; 3581 setup_postdata($this->post); 3582 } 3583 } 3584 3571 3585 } 3572 3586 3573 3587 /**