diff --git a/wp-atom.php b/wp-atom.php
index 767793345..4ab65e072 100644
--- a/wp-atom.php
+++ b/wp-atom.php
@@ -21,7 +21,7 @@ $more = 1;
- WordPress
+ WordPress
@@ -40,9 +40,9 @@ $more = 1;
- ]]>
+ ]]>
- ]]>
+ ]]>
diff --git a/wp-includes/feed.php b/wp-includes/feed.php
index e9dccd44b..358eb981b 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\tcat_name]]>\n";
+ if ( 'atom' == $type )
+ $the_list .= "";
else
$the_list .= "\n\t\tcat_name]]>\n";
}
@@ -162,6 +165,15 @@ function the_category_rss($type = 'rss') {
echo get_the_category_rss($type);
}
+function html_type_rss() {
+ $type = bloginfo('html_type');
+ if ( strstr( $type, 'xhtml' ) )
+ $type = 'xhtml';
+ else
+ $type = 'html';
+ echo $type;
+}
+
function rss_enclosure() {
global $id, $post;