From 8f2d1010bba7c74fa5f5efa07a3a19780be22d86 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 18 May 2009 18:00:47 +0000 Subject: [PATCH] Unset from GLOBALS. see #9854 git-svn-id: https://develop.svn.wordpress.org/trunk@11386 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index efc4d5d804..bca9437766 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -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);