Index: wp-includes/post-template.php
===================================================================
--- wp-includes/post-template.php	(revision 24319)
+++ wp-includes/post-template.php	(working copy)
@@ -193,7 +193,7 @@
 	$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 != $GLOBALS['post']->ID )
 		extract( wp_parse_post_content( $post, false ) );
 	else
 		global $pages, $multipage;
