From 99dc867670089cd28762e6feec87723711d67432 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 23 May 2013 18:16:24 +0000 Subject: [PATCH] Use the global post rather than the global post ID. They don't always match, and the global post is more canonical. see #24330 git-svn-id: http://core.svn.wordpress.org/trunk@24336 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 0eeaa5bb40..4bf565d43a 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -193,7 +193,7 @@ function get_the_content( $more_link_text = null, $strip_teaser = false, $id = 0 $post = get_post( $id ); // Avoid parsing again if the post is the same one parsed by setup_postdata(). // The extract() will set up $pages and $multipage. - if ( $post->ID != $GLOBALS['id'] ) + if ( $post->ID != get_post()->ID ) extract( wp_parse_post_content( $post, false ) ); else global $pages, $multipage;