WordPress.org

Make WordPress Core

Changeset 6032


Ignore:
Timestamp:
09/04/07 17:09:57 (7 years ago)
Author:
ryan
Message:

APP taxonomy fixes from rubys. fixes #4904

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-app.php

    r6026 r6032  
    196196        $cats = get_categories("hierarchical=0&hide_empty=0"); 
    197197        foreach ((array) $cats as $cat) { 
    198             $categories .= "    <category term=\"" . attribute_escape($cat->cat_name) .  "\" />\n"; 
     198            $categories .= "    <category term=\"" . attribute_escape($cat->name) .  "\" />\n"; 
    199199} 
    200200        $output = <<<EOD 
     
    233233 
    234234        foreach($wp_cats as $cat) { 
    235             if(in_array($cat->cat_name, $catnames)) 
    236                 array_push($post_category, $cat->cat_ID); 
     235            if(in_array($cat->name, $catnames)) 
     236                array_push($post_category, $cat->term_id); 
    237237        } 
    238238 
     
    811811    <link rel="edit" href="<?php $this->the_entry_url() ?>" /> 
    812812<?php foreach(get_the_category() as $category) { ?> 
    813     <category scheme="<?php bloginfo_rss('home') ?>" term="<?php echo $category->cat_name?>" /> 
     813    <category scheme="<?php bloginfo_rss('home') ?>" term="<?php echo $category->name?>" /> 
    814814<?php } ?> 
    815815<?php list($content_type, $content) = $this->prep_content(get_the_excerpt()); ?> 
Note: See TracChangeset for help on using the changeset viewer.