WordPress 3.3.2-scripts
[autoinstalls/wordpress.git] / wp-includes / feed-atom-comments.php
index e4a39d80bd9f0f14335cb1dbf33453b44f92f7c9..aca98bdb3718a6dbd0cd69f186b3eff84801920c 100644 (file)
@@ -42,8 +42,7 @@ echo '<?xml version="1.0" encoding="' . get_option('blog_charset') . '" ?' . '>'
 <?php do_action('comments_atom_head'); ?>
 <?php
 if ( have_comments() ) : while ( have_comments() ) : the_comment();
-       $comment_post = get_post($comment->comment_post_ID);
-       get_post_custom($comment_post->ID);
+       $comment_post = $GLOBALS['post'] = get_post( $comment->comment_post_ID );
 ?>
        <entry>
                <title><?php