summaryrefslogtreecommitdiffstats
path: root/wp-includes/feed.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-12-07 16:58:13 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-12-07 16:58:13 +0000
commitf9d5ef9fbb062b0c44c09207f947b515ab6dc66e (patch)
treed1cfa030e80a5f08ac79fb21281e647ee8a86026 /wp-includes/feed.php
parentd3ac809ed8a43bde6ea954329b3291fd9ca4aad5 (diff)
downloadwordpress-mu-f9d5ef9fbb062b0c44c09207f947b515ab6dc66e.tar.gz
wordpress-mu-f9d5ef9fbb062b0c44c09207f947b515ab6dc66e.tar.xz
wordpress-mu-f9d5ef9fbb062b0c44c09207f947b515ab6dc66e.zip
WP Merge to rev 4626
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@821 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/feed.php')
-rw-r--r--wp-includes/feed.php21
1 files changed, 19 insertions, 2 deletions
diff --git a/wp-includes/feed.php b/wp-includes/feed.php
index deebbea..529da85 100644
--- a/wp-includes/feed.php
+++ b/wp-includes/feed.php
@@ -5,10 +5,12 @@ function get_bloginfo_rss($show = '') {
return apply_filters('bloginfo_rss', convert_chars($info));
}
+
function bloginfo_rss($show = '') {
echo get_bloginfo_rss($show);
}
+
function get_the_title_rss() {
$title = get_the_title();
$title = apply_filters('the_title', $title);
@@ -16,10 +18,12 @@ function get_the_title_rss() {
return $title;
}
+
function the_title_rss() {
echo get_the_title_rss();
}
+
function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file='', $cut = 0, $encode_html = 0) {
$content = get_the_content($more_link_text, $stripteaser, $more_file);
$content = apply_filters('the_content_rss', $content);
@@ -42,9 +46,8 @@ function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file
$k = count($blah);
$use_dotdotdot = 0;
}
- for ( $i=0; $i<$k; $i++ ) {
+ for ( $i=0; $i<$k; $i++ )
$excerpt .= $blah[$i].' ';
- }
$excerpt .= ($use_dotdotdot) ? '...' : '';
$content = $excerpt;
}
@@ -52,37 +55,46 @@ function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file
echo $content;
}
+
function the_excerpt_rss() {
$output = get_the_excerpt(true);
echo apply_filters('the_excerpt_rss', $output);
}
+
function permalink_single_rss($file = '') {
echo get_permalink();
}
+
function comment_link() {
echo get_comment_link();
}
+
function get_comment_author_rss() {
return apply_filters('comment_author_rss', get_comment_author() );
}
+
+
function comment_author_rss() {
echo get_comment_author_rss();
}
+
function comment_text_rss() {
$comment_text = get_comment_text();
$comment_text = apply_filters('comment_text_rss', $comment_text);
echo $comment_text;
}
+
function comments_rss_link($link_text = 'Comments RSS', $commentsrssfilename = '') {
$url = comments_rss($commentsrssfilename);
echo "<a href='$url'>$link_text</a>";
}
+
function comments_rss($commentsrssfilename = '') {
global $id;
@@ -94,6 +106,7 @@ function comments_rss($commentsrssfilename = '') {
return apply_filters('post_comments_feed_link', $url);
}
+
function get_author_rss_link($echo = false, $author_id, $author_nicename) {
$auth_ID = $author_id;
$permalink_structure = get_option('permalink_structure');
@@ -112,6 +125,7 @@ function get_author_rss_link($echo = false, $author_id, $author_nicename) {
return $link;
}
+
function get_category_rss_link($echo = false, $cat_ID, $category_nicename) {
$permalink_structure = get_option('permalink_structure');
@@ -129,6 +143,7 @@ function get_category_rss_link($echo = false, $cat_ID, $category_nicename) {
return $link;
}
+
function get_the_category_rss($type = 'rss') {
$categories = get_the_category();
$the_list = '';
@@ -142,10 +157,12 @@ function get_the_category_rss($type = 'rss') {
return apply_filters('the_category_rss', $the_list, $type);
}
+
function the_category_rss($type = 'rss') {
echo get_the_category_rss($type);
}
+
function rss_enclosure() {
global $id, $post;
if ( !empty($post->post_password) && ($_COOKIE['wp-postpass_'.COOKIEHASH] != $post->post_password) )