Changeset 6032 for trunk/wp-app.php
- Timestamp:
- 09/04/2007 05:09:57 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-app.php
r6026 r6032 196 196 $cats = get_categories("hierarchical=0&hide_empty=0"); 197 197 foreach ((array) $cats as $cat) { 198 $categories .= " <category term=\"" . attribute_escape($cat-> cat_name) . "\" />\n";198 $categories .= " <category term=\"" . attribute_escape($cat->name) . "\" />\n"; 199 199 } 200 200 $output = <<<EOD … … 233 233 234 234 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); 237 237 } 238 238 … … 811 811 <link rel="edit" href="<?php $this->the_entry_url() ?>" /> 812 812 <?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?>" /> 814 814 <?php } ?> 815 815 <?php list($content_type, $content) = $this->prep_content(get_the_excerpt()); ?>
Note: See TracChangeset
for help on using the changeset viewer.