Ticket #137: comments-feed-last-modified.patch

File comments-feed-last-modified.patch, 645 bytes (added by chrisdolan, 6 years ago)

Update to support feed=comments-rss2

  • wp-blog-header.php

     
    118118        @header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); 
    119119} else { 
    120120        // We're showing a feed, so WP is indeed the only thing that last changed 
    121         if ( $withcomments ) 
     121        if ( $withcomments || $feed == 'comments-rss2' ) 
    122122                $wp_last_modified = mysql2date('D, d M Y H:i:s', get_lastcommentmodified('GMT'), 0).' GMT'; 
    123123        else  
    124124                $wp_last_modified = mysql2date('D, d M Y H:i:s', get_lastpostmodified('GMT'), 0).' GMT';