get_the_category_rss() from masquerade.
git-svn-id: https://develop.svn.wordpress.org/trunk@4257 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
809a0f83fa
commit
df5a935be4
|
@ -128,7 +128,7 @@ function get_category_rss_link($echo = false, $cat_ID, $category_nicename) {
|
||||||
return $link;
|
return $link;
|
||||||
}
|
}
|
||||||
|
|
||||||
function the_category_rss($type = 'rss') {
|
function get_the_category_rss($type = 'rss') {
|
||||||
$categories = get_the_category();
|
$categories = get_the_category();
|
||||||
$the_list = '';
|
$the_list = '';
|
||||||
foreach ($categories as $category) {
|
foreach ($categories as $category) {
|
||||||
|
@ -139,7 +139,11 @@ function the_category_rss($type = 'rss') {
|
||||||
$the_list .= "\n\t<category>$category->cat_name</category>";
|
$the_list .= "\n\t<category>$category->cat_name</category>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo apply_filters('the_category_rss', $the_list, $type);
|
return apply_filters('the_category_rss', $the_list, $type);
|
||||||
|
}
|
||||||
|
|
||||||
|
function the_category_rss($type = 'rss') {
|
||||||
|
echo get_the_category_rss($type);
|
||||||
}
|
}
|
||||||
|
|
||||||
function rss_enclosure() {
|
function rss_enclosure() {
|
||||||
|
|
Loading…
Reference in New Issue