summaryrefslogtreecommitdiffstats
path: root/wp-includes/feed.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-01-26 12:57:25 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-01-26 12:57:25 +0000
commit8a8560c1b75ce5cb9f3b86bf3cba19c6df5000ff (patch)
tree9a697c0c3029c2b7a5223d818398c562346921e3 /wp-includes/feed.php
parentc794c54fc14d1a4af6101ace58f8e60da2dc7d98 (diff)
downloadwordpress-mu-8a8560c1b75ce5cb9f3b86bf3cba19c6df5000ff.tar.gz
wordpress-mu-8a8560c1b75ce5cb9f3b86bf3cba19c6df5000ff.tar.xz
wordpress-mu-8a8560c1b75ce5cb9f3b86bf3cba19c6df5000ff.zip
WP Merge to rev 4813
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@868 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/feed.php')
-rw-r--r--wp-includes/feed.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/wp-includes/feed.php b/wp-includes/feed.php
index 529da85..6c57fc5 100644
--- a/wp-includes/feed.php
+++ b/wp-includes/feed.php
@@ -146,11 +146,14 @@ function get_category_rss_link($echo = false, $cat_ID, $category_nicename) {
function get_the_category_rss($type = 'rss') {
$categories = get_the_category();
+ $home = get_bloginfo_rss('home');
$the_list = '';
foreach ( (array) $categories as $category ) {
$category->cat_name = convert_chars($category->cat_name);
if ( 'rdf' == $type )
$the_list .= "\n\t\t<dc:subject><![CDATA[$category->cat_name]]></dc:subject>\n";
+ if ( 'atom' == $type )
+ $the_list .= "<category scheme='$home' term='$category->cat_name' />";
else
$the_list .= "\n\t\t<category><![CDATA[$category->cat_name]]></category>\n";
}
@@ -162,6 +165,15 @@ function the_category_rss($type = 'rss') {
echo get_the_category_rss($type);
}
+function html_type_rss() {
+ $type = get_bloginfo('html_type');
+ if ( strstr( $type, 'xhtml' ) )
+ $type = 'xhtml';
+ else
+ $type = 'html';
+ echo $type;
+}
+
function rss_enclosure() {
global $id, $post;