Changeset 4804
- Timestamp:
- 01/25/2007 08:37:26 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
wp-atom.php (modified) (2 diffs)
-
wp-includes/feed.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-atom.php
r4803 r4804 22 22 23 23 <updated><?php echo mysql2date('Y-m-d\TH:i:s\Z', get_lastpostmodified('GMT')); ?></updated> 24 <generator ur l="http://wordpress.org/" version="<?php bloginfo_rss('version'); ?>">WordPress</generator>24 <generator uri="http://wordpress.org/" version="<?php bloginfo_rss('version'); ?>">WordPress</generator> 25 25 26 26 <link rel="alternate" type="text/html" href="<?php bloginfo_rss('home') ?>" /> … … 41 41 <published><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></published> 42 42 <?php the_category_rss('atom') ?> 43 <summary type="<?php bloginfo('html_type'); ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>43 <summary type="<?php html_type_rss(); ?>"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary> 44 44 <?php if ( !get_option('rss_use_excerpt') ) : ?> 45 <content type="<?php bloginfo('html_type'); ?>" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content>45 <content type="<?php html_type_rss(); ?>" xml:base="<?php permalink_single_rss() ?>"><![CDATA[<?php the_content('', 0, '') ?>]]></content> 46 46 <?php endif; ?> 47 47 <?php rss_enclosure(); ?> -
trunk/wp-includes/feed.php
r4626 r4804 147 147 function get_the_category_rss($type = 'rss') { 148 148 $categories = get_the_category(); 149 $home = get_bloginfo_rss('home'); 149 150 $the_list = ''; 150 151 foreach ( (array) $categories as $category ) { … … 152 153 if ( 'rdf' == $type ) 153 154 $the_list .= "\n\t\t<dc:subject><![CDATA[$category->cat_name]]></dc:subject>\n"; 155 if ( 'atom' == $type ) 156 $the_list .= "<category scheme='$home' term='$category->cat_name' />"; 154 157 else 155 158 $the_list .= "\n\t\t<category><![CDATA[$category->cat_name]]></category>\n"; … … 161 164 function the_category_rss($type = 'rss') { 162 165 echo get_the_category_rss($type); 166 } 167 168 function html_type_rss() { 169 $type = bloginfo('html_type'); 170 if ( strstr( $type, 'xhtml' ) ) 171 $type = 'xhtml'; 172 else 173 $type = 'html'; 174 echo $type; 163 175 } 164 176
Note: See TracChangeset
for help on using the changeset viewer.