Changeset 3314 for trunk/wp-commentsrss2.php
- Timestamp:
- 12/15/2005 10:20:06 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-commentsrss2.php
r3196 r3314 21 21 $i++; 22 22 ?> 23 <title><?php if (is_single() || is_page() ) { echo "Comments on: "; the_title_rss(); } else { bloginfo_rss("name"); echo " Comments"; } ?></title>23 <title><?php if (is_single() || is_page() ) { printf(__('Comments on: %s'), get_the_title_rss()); } else { printf(__('Comments for %s'), get_bloginfo_rss("name")); } ?></title> 24 24 <link><?php (is_single()) ? permalink_single_rss() : bloginfo_rss("url") ?></link> 25 25 <description><?php bloginfo_rss("description") ?></description> … … 52 52 ?> 53 53 <item> 54 <title>by: <?php comment_author_rss() ?></title> 54 <title><?php if ( ! (is_single() || is_page()) ) { 55 $title = get_the_title($comment->comment_post_ID); 56 $title = apply_filters('the_title', $title); 57 $title = apply_filters('the_title_rss', $title); 58 printf(__('Comment on %1$s by %2$s'), $title, get_comment_author_rss()); 59 } else { 60 printf(__('by: %s'), get_comment_author_rss()); 61 } ?></title> 55 62 <link><?php comment_link() ?></link> 56 63 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_comment_time('Y-m-d H:i:s', true), false); ?></pubDate> … … 59 66 if (!empty($comment->post_password) && $_COOKIE['wp-postpass'] != $comment->post_password) { 60 67 ?> 61 <description> Protected Comments: Please enter your password to view comments.</description>68 <description><?php _e('Protected Comments: Please enter your password to view comments.'); ?></description> 62 69 <content:encoded><![CDATA[<?php echo get_the_password_form() ?>]]></content:encoded> 63 70 <?php
Note: See TracChangeset
for help on using the changeset viewer.