mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
Bunch of whitespace and coding standardization.
git-svn-id: https://develop.svn.wordpress.org/trunk@4626 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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) )
|
||||
|
||||
Reference in New Issue
Block a user