Changeset 2384 for trunk/wp-includes/feed-functions.php
- Timestamp:
- 02/26/2005 06:12:16 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/feed-functions.php
r2380 r2384 74 74 } 75 75 76 function comments_rss_link($link_text = 'Comments RSS', $commentsrssfilename = ' wp-commentsrss2.php') {76 function comments_rss_link($link_text = 'Comments RSS', $commentsrssfilename = '') { 77 77 $url = comments_rss($commentsrssfilename); 78 78 echo "<a href='$url'>$link_text</a>"; 79 79 } 80 80 81 function comments_rss($commentsrssfilename = ' wp-commentsrss2.php') {81 function comments_rss($commentsrssfilename = '') { 82 82 global $id; 83 83 … … 85 85 $url = trailingslashit( get_permalink() ) . 'feed/'; 86 86 else 87 $url = get_settings(' siteurl') . "/$commentsrssfilename?p=$id";87 $url = get_settings('home') . "/$commentsrssfilename?feed=rss2&p=$id"; 88 88 89 return $url;89 return apply_filters('post_comments_feed_link', $url); 90 90 } 91 91 … … 95 95 96 96 if ('' == $permalink_structure) { 97 $file = get_settings('siteurl') . '/wp-rss2.php'; 98 $link = $file . '?author=' . $author_id; 97 $link = get_settings('home') . '?feed=rss2&author=' . $author_id; 99 98 } else { 100 101 99 $link = get_author_link(0, $author_id, $author_nicename); 100 $link = $link . "feed/"; 102 101 } 102 103 $link = apply_filters('author_feed_link', $link); 103 104 104 105 if ($echo) echo $link; … … 111 112 112 113 if ('' == $permalink_structure) { 113 $file = get_settings('siteurl') . '/wp-rss2.php'; 114 $link = $file . '?cat=' . $category_id; 114 $link = get_settings('home') . '?feed=rss2&cat=' . $category_id; 115 115 } else { 116 117 116 $link = get_category_link($category_id); 117 $link = $link . "feed/"; 118 118 } 119 120 $link = apply_filters('category_feed_link', $link); 119 121 120 122 if ($echo) echo $link;
Note: See TracChangeset
for help on using the changeset viewer.