WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/19/2011 12:39:59 PM (9 years ago)
Author:
westi
Message:

Set up the post global variable in the comment feed loops so that any calls to post related template tags work correctly.
Ensures that atom feeds show threading for top-level comments correctly.
Fixes #14908 props solarissmoke and SergeyBiryukov.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/feed-atom-comments.php

    r14950 r18716  
    4343<?php
    4444if ( have_comments() ) : while ( have_comments() ) : the_comment();
    45     $comment_post = get_post($comment->comment_post_ID);
    46     get_post_custom($comment_post->ID);
     45    $comment_post = $GLOBALS['post'] = get_post( $comment->comment_post_ID );
    4746?>
    4847    <entry>
Note: See TracChangeset for help on using the changeset viewer.