Some feed template function cleanup.

git-svn-id: https://develop.svn.wordpress.org/trunk@2068 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2005-01-07 22:01:59 +00:00
parent e37acd9362
commit 7e8f96ac46
13 changed files with 210 additions and 219 deletions
-32
View File
@@ -60,10 +60,6 @@ function comments_link( $file = '', $echo = true ) {
echo get_comments_link();
}
function comment_link_rss() {
echo get_comments_link();
}
function comments_popup_script($width=400, $height=400, $file='') {
global $wpcommentspopupfile, $wptrackbackpopupfile, $wppingbackpopupfile, $wpcommentsjavascript;
@@ -145,11 +141,6 @@ function comment_author() {
echo $author;
}
function comment_author_rss() {
$author = apply_filters('comment_author_rss', get_comment_author() );
echo $author;
}
function get_comment_author_email() {
global $comment;
return apply_filters('get_comment_author_email', $comment->comment_author_email);
@@ -244,12 +235,6 @@ function comment_text() {
echo apply_filters('comment_text', get_comment_text() );
}
function comment_text_rss() {
$comment_text = get_comment_text();
$comment_text = apply_filters('comment_text_rss', $comment_text);
echo $comment_text;
}
function get_comment_excerpt() {
global $comment;
$comment_text = strip_tags($comment->comment_content);
@@ -299,23 +284,6 @@ function comment_time( $d = '' ) {
echo get_comment_time();
}
function comments_rss_link($link_text = 'Comments RSS', $commentsrssfilename = 'wp-commentsrss2.php') {
$url = comments_rss($commentsrssfilename);
echo "<a href='$url'>$link_text</a>";
}
function comments_rss($commentsrssfilename = 'wp-commentsrss2.php') {
global $id;
global $querystring_start, $querystring_equal, $querystring_separator;
if ('' != get_settings('permalink_structure'))
$url = trailingslashit( get_permalink() ) . 'feed/';
else
$url = get_settings('siteurl') . "/$commentsrssfilename?p=$id";
return $url;
}
function get_trackback_url() {
global $id;
$tb_url = get_settings('siteurl') . '/wp-trackback.php/' . $id;