Make WordPress Core


Ignore:
Timestamp:
12/06/2007 07:58:15 PM (17 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/deprecated.php

    r6160 r6365  
    730730}
    731731
     732
     733function comments_rss_link($link_text = 'Comments RSS', $deprecated = '') {
     734    post_comments_feed_link($link_text);
     735}
     736
     737function get_category_rss_link($echo = false, $cat_ID, $deprecated = '') {
     738    $link = get_category_feed_link($cat_ID, $feed = 'rss2');
     739
     740    if ( $echo )
     741        echo $link;
     742    return $link;
     743}
     744
     745function get_author_rss_link($echo = false, $author_id, $deprecated = '') {
     746    $link = get_author_feed_link($author_id);
     747    if ( $echo )
     748        echo $link;
     749    return $link;
     750}
     751
    732752?>
Note: See TracChangeset for help on using the changeset viewer.