Make WordPress Core

Changeset 2379


Ignore:
Timestamp:
02/25/2005 03:50:55 PM (20 years ago)
Author:
ryan
Message:

Add get_the_category_list(). http://mosquito.wordpress.org/view.php?id=970 Hat tip: nbachiyski

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-category.php

    r2364 r2379  
    4747}
    4848
    49 function the_category($separator = '', $parents='') {
     49function get_the_category_list($separator = '', $parents='') {
    5050    $categories = get_the_category();
    5151    if (empty($categories)) {
    52         _e('Uncategorized');
    53         return;
     52            return apply_filters('the_category', __('Uncategorized'), $separator, $parents);
    5453    }
    5554
     
    102101        }
    103102    }
    104     echo apply_filters('the_category', $thelist, $separator, $parents);
     103    return apply_filters('the_category', $thelist, $separator, $parents);
     104}
     105
     106function the_category($separator = '', $parents='') {
     107    echo get_the_category_list($separator, $parents);
    105108}
    106109
Note: See TracChangeset for help on using the changeset viewer.