Changeset 2616 for trunk/wp-includes/template-functions-general.php
- Timestamp:
- 05/27/2005 06:10:41 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-general.php
r2513 r2616 206 206 207 207 function single_cat_title($prefix = '', $display = true ) { 208 $cat = get_query_var('cat');209 if(!empty($cat) && !(strtoupper($cat) == 'ALL')) {210 211 if(!empty($my_cat_name)) {212 213 214 215 216 217 208 $cat = intval( get_query_var('cat') ); 209 if( !empty($cat) && !(strtoupper($cat) == 'ALL') ) { 210 $my_cat_name = get_the_category_by_ID($cat); 211 if( !empty($my_cat_name) ) { 212 if ($display) 213 echo $prefix.strip_tags($my_cat_name); 214 else 215 return strip_tags($my_cat_name); 216 } 217 } 218 218 } 219 219
Note: See TracChangeset
for help on using the changeset viewer.