Changeset 634
- Timestamp:
- 12/22/03 00:32:05 (5 years ago)
- Files:
-
- trunk/wp-includes/template-functions.php (modified) (1 diff)
- trunk/wp-rdf.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/template-functions.php
r628 r634 1273 1273 } 1274 1274 1275 function the_category_rss( ) {1275 function the_category_rss($type = 'rss') { 1276 1276 $categories = get_the_category(); 1277 1277 foreach ($categories as $category) { 1278 1278 $category->cat_name = stripslashes(convert_chars($category->cat_name)); 1279 echo "\n<category>$category->cat_name</category>"; 1279 if ('rdf' == $type) { 1280 echo "\n<dc:subject>$category->cat_name</dc:subject>"; 1281 } else { 1282 echo "\n<category>$category->cat_name</category>"; 1283 } 1280 1284 } 1281 1285 trunk/wp-rdf.php
r628 r634 56 56 <dc:date><?php the_time('Y-m-d\TH:i:s'); ?></dc:date> 57 57 <dc:creator><?php the_author() ?> (mailto:<?php the_author_email() ?>)</dc:creator> 58 < dc:subject><?php the_category_rss() ?></dc:subject>58 <?php the_category_rss('rdf') ?> 59 59 <?php $more = 1; if ($rss_use_excerpt) { 60 60 ?>
