WordPress.org

Make WordPress Core

Changeset 5760


Ignore:
Timestamp:
06/25/2007 09:39:17 PM (13 years ago)
Author:
ryan
Message:

s/cat_name/name/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-app.php

    r5700 r5760  
    385385    $cats = get_categories("hierarchical=0&hide_empty=0");
    386386    foreach ((array) $cats as $cat) {
    387         $categories .= "    <category term=\"" . attribute_escape($cat->cat_name) .  "\" />\n";
     387        $categories .= "    <category term=\"" . attribute_escape($cat->name) .  "\" />\n";
    388388    }
    389389        $output = <<<EOD
     
    937937    <?php } ?>
    938938    <?php foreach(get_the_category() as $category) { ?>
    939      <category scheme="<?php bloginfo_rss('home') ?>" term="<?php echo $category->cat_name?>" />
     939     <category scheme="<?php bloginfo_rss('home') ?>" term="<?php echo $category->name?>" />
    940940    <?php } ?>   <summary type="html"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>
    941941    <?php if ( strlen( $GLOBALS['post']->post_content ) ) : ?>
     
    993993<?php } ?>
    994994<?php foreach(get_the_category() as $category) { ?>
    995     <category scheme="<?php bloginfo_rss('home') ?>" term="<?php echo $category->cat_name?>" />
     995    <category scheme="<?php bloginfo_rss('home') ?>" term="<?php echo $category->name?>" />
    996996    <summary type="html"><![CDATA[<?php the_excerpt_rss(); ?>]]></summary>
    997997<?php }
Note: See TracChangeset for help on using the changeset viewer.