WordPress.org

Make WordPress Core


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.