mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 14:50:29 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user