Make WordPress Core


Ignore:
Timestamp:
12/22/2003 12:32:05 AM (22 years ago)
Author:
saxmatt
Message:

Multiple category support for RDF.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.