Changeset 1255 for trunk/wp-includes/template-functions-comment.php
- Timestamp:
- 05/10/2004 07:51:50 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-comment.php
r1245 r1255 217 217 218 218 function comments_rss_link($link_text='Comments RSS', $commentsrssfilename = 'wp-commentsrss2.php') { 219 $url = comments_rss($commentsrssfilename); 220 echo "<a href='$url'>$link_text</a>"; 221 } 222 223 function comments_rss($commentsrssfilename = 'wp-commentsrss2.php') { 219 224 global $id; 220 225 global $querystring_start, $querystring_equal, $querystring_separator; 221 226 222 227 if ('' != get_settings('permalink_structure')) { 223 $url = trailingslashit(get_permalink()) . ' rss2/';228 $url = trailingslashit(get_permalink()) . 'feed/'; 224 229 } else { 225 230 $url = get_settings('siteurl') . '/' . $commentsrssfilename.$querystring_start.'p'.$querystring_equal.$id; 226 231 } 227 228 echo "<a href='$url'>$link_text</a>"; 232 return $url; 229 233 } 230 234
Note: See TracChangeset
for help on using the changeset viewer.