Unset from GLOBALS. see #9854

git-svn-id: http://svn.automattic.com/wordpress/trunk@11386 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-05-18 18:00:47 +00:00
parent fa2c456b29
commit fc0f664353
1 changed files with 1 additions and 1 deletions

View File

@ -2381,9 +2381,9 @@ class WP_Query {
* @uses do_action() Calls 'loop_start' if loop has just started
*/
function the_post() {
unset($GLOBALS['post']); // Break the ref
global $post;
$this->in_the_loop = true;
unset($post); // Break the ref
$post = $this->next_post();
setup_postdata($post);
do_action('the_post', $post);