WordPress.org

Make WordPress Core

Ticket #14908: 14908.patch

File 14908.patch, 463 bytes (added by solarissmoke, 3 years ago)

Ensure post global is set in feed-atom-comments.php

  • wp-includes/feed-atom-comments.php

     
    4343<?php 
    4444if ( have_comments() ) : while ( have_comments() ) : the_comment(); 
    4545        $comment_post = get_post($comment->comment_post_ID); 
     46        $GLOBALS['post'] =& $comment_post; 
    4647        get_post_custom($comment_post->ID); 
    4748?> 
    4849        <entry>