Make WordPress Core

Ticket #5214: rss-profile.patch

File rss-profile.patch, 1.6 KB (added by rubys, 19 years ago)

add atom:link to the rss 2.0 feeds

  • wp-includes/feed-rss2.php

     
    99        xmlns:content="http://purl.org/rss/1.0/modules/content/"
    1010        xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    1111        xmlns:dc="http://purl.org/dc/elements/1.1/"
     12        xmlns:atom="http://www.w3.org/2005/Atom"
    1213        <?php do_action('rss2_ns'); ?>
    1314>
    1415
     
    1920        <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); ?></pubDate>
    2021        <?php the_generator( 'rss2' ); ?>
    2122        <language><?php echo get_option('rss_language'); ?></language>
     23        <atom:link rel="self" type="application/rss+xml" href="<?php bloginfo('rss2_url'); ?>" />
    2224        <?php do_action('rss2_head'); ?>
    2325        <?php while( have_posts()) : the_post(); ?>
    2426        <item>
  • wp-includes/feed-rss2-comments.php

     
    66<rss version="2.0"
    77        xmlns:content="http://purl.org/rss/1.0/modules/content/"
    88        xmlns:dc="http://purl.org/dc/elements/1.1/"
     9        xmlns:atom="http://www.w3.org/2005/Atom"
    910        >
    1011<channel>
    1112        <title><?php
     
    2021        <description><?php bloginfo_rss("description") ?></description>
    2122        <pubDate><?php echo gmdate('r'); ?></pubDate>
    2223        <?php the_generator( 'rss2' ); ?>
     24        <atom:link rel="self" type="application/rss+xml" href="<?php bloginfo_rss('comments_rss2_url'); ?>" />
    2325        <?php do_action('commentsrss2_head'); ?>
    2426<?php
    2527if ( have_comments() ) : while ( have_comments() ) : the_comment();