WordPress.org

Make WordPress Core

Ticket #14908: 14908.2.patch

File 14908.2.patch, 1000 bytes (added by SergeyBiryukov, 3 years ago)
  • wp-includes/feed-atom-comments.php

     
    4242<?php do_action('comments_atom_head'); ?> 
    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> 
    4948                <title><?php 
  • wp-includes/feed-rss2-comments.php

     
    3535<?php 
    3636if ( have_comments() ) : while ( have_comments() ) : the_comment(); 
    3737        $comment_post = get_post($comment->comment_post_ID); 
    38         get_post_custom($comment_post->ID); 
    3938?> 
    4039        <item> 
    4140                <title><?php