Changeset 624
- Timestamp:
- 12/18/03 08:58:07 (5 years ago)
- Files:
-
- trunk/wp-includes/template-functions.php (modified) (1 diff)
- trunk/wp-rss2.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/template-functions.php
r617 r624 1274 1274 1275 1275 function the_category_rss() { 1276 echo convert_chars(strip_tags(get_the_category()), 'xml'); 1276 $categories = get_the_category(); 1277 foreach ($categories as $category) { 1278 $category->cat_name = stripslashes(convert_chars($category->cat_name)); 1279 echo "\n<category>$category->cat_name</category>"; 1280 } 1281 1277 1282 } 1278 1283 function the_category_unicode() { trunk/wp-rss2.php
r601 r624 5 5 require('wp-blog-header.php'); 6 6 7 /* This doesn't take into account edits 7 8 // Get the time of the most recent article 8 9 $maxdate = $wpdb->get_var("SELECT max(post_date) FROM $tableposts"); … … 16 17 header("Last-Modified: " . $clast, true); 17 18 header("Etag: " . $cetag, true); 19 */ 18 20 19 21 if (!isset($rss_language)) { $rss_language = 'en'; } … … 21 23 if (!isset($rss_excerpt_length) || ($rss_encoded_html == 1)) { $rss_excerpt_length = 0; } 22 24 ?> 23 <?php echo "<?xml version=\"1.0\"?".">"; ?>25 <?php echo '<?xml version="1.0"?'.'>'; ?> 24 26 <!-- generator="wordpress/<?php echo $b2_version ?>" --> 25 27 <rss version="2.0" … … 27 29 28 30 <channel> 29 <title><?php bloginfo_rss( "name") ?></title>30 <link><?php bloginfo_rss( "url") ?></link>31 <title><?php bloginfo_rss('name') ?></title> 32 <link><?php bloginfo_rss('url') ?></link> 31 33 <description><?php bloginfo_rss("description") ?></description> 32 34 <language><?php echo $rss_language ?></language> … … 42 44 <pubDate><?php the_time('r'); ?></pubDate> 43 45 <author><?php the_author() ?> (mailto:<?php the_author_email() ?>)</author> 44 < category><?php the_category_rss() ?></category>46 <?php the_category_rss() ?> 45 47 <guid isPermaLink="false"><?php echo $id; ?>@<?php bloginfo_rss("url") ?></guid> 46 48 <?php $more = 1; if ($rss_use_excerpt) {
