WordPress.org

Make WordPress Core

Ticket #4023: slash-comments-fix.diff

File slash-comments-fix.diff, 796 bytes (added by Otto42, 7 years ago)

Fixed version using get_comments_number();

  • wp-includes/feed-rss2.php

     
    1010        xmlns:content="http://purl.org/rss/1.0/modules/content/" 
    1111        xmlns:wfw="http://wellformedweb.org/CommentAPI/" 
    1212        xmlns:dc="http://purl.org/dc/elements/1.1/" 
     13        xmlns:slash="http://purl.org/rss/1.0/modules/slash/" 
    1314        <?php do_action('rss2_ns'); ?> 
    1415> 
    1516 
     
    4142                <content:encoded><![CDATA[<?php the_excerpt_rss() ?>]]></content:encoded> 
    4243        <?php endif; ?> 
    4344<?php endif; ?> 
     45                <slash:comments><?php echo get_comments_number(); ?></slash:comments> 
    4446                <wfw:commentRss><?php echo comments_rss(); ?></wfw:commentRss> 
    4547<?php rss_enclosure(); ?> 
    4648        <?php do_action('rss2_item'); ?>