WordPress.org

Make WordPress Core

Changeset 6278


Ignore:
Timestamp:
10/20/2007 10:35:44 AM (12 years ago)
Author:
westi
Message:

Add atom:self link to rss2 feeds per RSS Best Practices Profile. Fixes #5205 props lexhair and rubys.

Location:
trunk/wp-includes
Files:
2 edited

Legend:

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

    r6195 r6278  
    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>
     
    1718            printf(__('Comments for %s'), get_bloginfo_rss( 'name' ) . get_wp_title_rss());
    1819    ?></title>
     20    <atom:link href="<?php bloginfo('comments_rss2_url') ?>" rel="self" type="application/rss+xml" />
    1921    <link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link>
    2022    <description><?php bloginfo_rss("description") ?></description>
  • trunk/wp-includes/feed-rss2.php

    r6195 r6278  
    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>
     
    1516<channel>
    1617    <title><?php bloginfo_rss('name'); wp_title_rss(); ?></title>
     18    <atom:link href="<?php bloginfo('rss2_url') ?>" rel="self" type="application/rss+xml" />
    1719    <link><?php bloginfo_rss('url') ?></link>
    1820    <description><?php bloginfo_rss("description") ?></description>
Note: See TracChangeset for help on using the changeset viewer.