New feed_link functions. Deprecate rss_link functions. Make default feed pluggable. Props rubys. see #5328

git-svn-id: https://develop.svn.wordpress.org/trunk@6365 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-12-06 19:58:15 +00:00
parent 3a8b2fcca3
commit fb05263f15
7 changed files with 151 additions and 115 deletions
+20
View File
@@ -729,4 +729,24 @@ function get_linkcatname($id = 0) {
return $cat->name;
}
function comments_rss_link($link_text = 'Comments RSS', $deprecated = '') {
post_comments_feed_link($link_text);
}
function get_category_rss_link($echo = false, $cat_ID, $deprecated = '') {
$link = get_category_feed_link($cat_ID, $feed = 'rss2');
if ( $echo )
echo $link;
return $link;
}
function get_author_rss_link($echo = false, $author_id, $deprecated = '') {
$link = get_author_feed_link($author_id);
if ( $echo )
echo $link;
return $link;
}
?>