From c9039f96d173d15ef7154e01e21a01c2deda59ca Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sat, 20 Oct 2007 10:35:44 +0000 Subject: [PATCH] Add atom:self link to rss2 feeds per RSS Best Practices Profile. Fixes #5205 props lexhair and rubys. git-svn-id: https://develop.svn.wordpress.org/trunk@6278 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/feed-rss2-comments.php | 2 ++ wp-includes/feed-rss2.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/wp-includes/feed-rss2-comments.php b/wp-includes/feed-rss2-comments.php index f077a16d85..ba06573c8b 100644 --- a/wp-includes/feed-rss2-comments.php +++ b/wp-includes/feed-rss2-comments.php @@ -6,6 +6,7 @@ echo ''; <?php @@ -16,6 +17,7 @@ echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; else printf(__('Comments for %s'), get_bloginfo_rss( 'name' ) . get_wp_title_rss()); ?> + diff --git a/wp-includes/feed-rss2.php b/wp-includes/feed-rss2.php index c40814e831..5b330adbe0 100644 --- a/wp-includes/feed-rss2.php +++ b/wp-includes/feed-rss2.php @@ -9,11 +9,13 @@ $more = 1; xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:atom="http://www.w3.org/2005/Atom" > <?php bloginfo_rss('name'); wp_title_rss(); ?> +