Changeset 2379
- Timestamp:
- 02/25/2005 03:50:55 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-category.php
r2364 r2379 47 47 } 48 48 49 function the_category($separator = '', $parents='') {49 function get_the_category_list($separator = '', $parents='') { 50 50 $categories = get_the_category(); 51 51 if (empty($categories)) { 52 _e('Uncategorized'); 53 return; 52 return apply_filters('the_category', __('Uncategorized'), $separator, $parents); 54 53 } 55 54 … … 102 101 } 103 102 } 104 echo apply_filters('the_category', $thelist, $separator, $parents); 103 return apply_filters('the_category', $thelist, $separator, $parents); 104 } 105 106 function the_category($separator = '', $parents='') { 107 echo get_the_category_list($separator, $parents); 105 108 } 106 109
Note: See TracChangeset
for help on using the changeset viewer.