From 5f472898e5c8b61a0e04fd8a9f49d776ad241c6d 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: https://develop.svn.wordpress.org/trunk@24336 602fd350-edb4-49c9-b593-d223f7449a82 --- 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;