Changeset 634

Show
Ignore:
Timestamp:
12/22/03 00:32:05 (5 years ago)
Author:
saxmatt
Message:

Multiple category support for RDF.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/template-functions.php

    r628 r634  
    12731273} 
    12741274 
    1275 function the_category_rss() { 
     1275function the_category_rss($type = 'rss') { 
    12761276    $categories = get_the_category(); 
    12771277    foreach ($categories as $category) { 
    12781278        $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        } 
    12801284    } 
    12811285 
  • trunk/wp-rdf.php

    r628 r634  
    5656    <dc:date><?php the_time('Y-m-d\TH:i:s'); ?></dc:date> 
    5757    <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') ?
    5959<?php $more = 1; if ($rss_use_excerpt) { 
    6060?>