Changeset 885 for trunk/wp-includes/template-functions-category.php
- Timestamp:
- 02/17/2004 04:56:29 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/template-functions-category.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-category.php
r873 r885 104 104 $category->cat_name = stripslashes(convert_chars($category->cat_name)); 105 105 if ('rdf' == $type) { 106 echo "\n <dc:subject>$category->cat_name</dc:subject>";106 echo "\n\t<dc:subject>$category->cat_name</dc:subject>"; 107 107 } else { 108 echo "\n<category>$category->cat_name</category>"; 109 } 110 } 111 112 } 113 function the_category_unicode() { 114 $category = get_the_category(); 115 $category = apply_filters('the_category_unicode', $category); 116 echo convert_chars($category, 'unicode'); 108 echo "\n\t<category>$category->cat_name</category>"; 109 } 110 } 111 117 112 } 118 113 … … 128 123 } 129 124 130 function get_category_parents($id, $link =FALSE, $separator=' / ', $nicename=FALSE){125 function get_category_parents($id, $link = FALSE, $separator = '/', $nicename = FALSE){ 131 126 global $tablecategories, $cache_categories; 132 127 $chain = ""; … … 146 141 } 147 142 148 function get_category_children($id, $before =' / ', $after='') {143 function get_category_children($id, $before = '/', $after = '') { 149 144 global $tablecategories, $cache_categories; 150 $c_cache =$cache_categories; // Can't do recursive foreach on a global, have to make a copy151 $chain = "";145 $c_cache = $cache_categories; // Can't do recursive foreach on a global, have to make a copy 146 $chain = ''; 152 147 foreach ($c_cache as $category){ 153 148 if ($category->category_parent == $id){ … … 159 154 } 160 155 161 function the_category_ID($echo =true) {156 function the_category_ID($echo = true) { 162 157 global $post; 163 158 if ($echo)
Note: See TracChangeset
for help on using the changeset viewer.