WordPress.org

Make WordPress Core

Changeset 11272


Ignore:
Timestamp:
05/11/2009 07:42:47 PM (9 years ago)
Author:
westi
Message:

Add slash:comments extension to RSS2 feed to give comment counts for posts. Fixes #4023 props peaceablewhale.

File:
1 edited

Legend:

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

    r11206 r11272  
    1717    xmlns:atom="http://www.w3.org/2005/Atom"
    1818    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
     19    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    1920    <?php do_action('rss2_ns'); ?>
    2021>
     
    5253<?php endif; ?>
    5354        <wfw:commentRss><?php echo get_post_comments_feed_link(); ?></wfw:commentRss>
     55        <slash:comments><?php echo get_comments_number(); ?></slash:comments>
    5456<?php rss_enclosure(); ?>
    5557    <?php do_action('rss2_item'); ?>
Note: See TracChangeset for help on using the changeset viewer.