Ticket #13867: feed-rss2-comments.php.diff
| File feed-rss2-comments.php.diff, 1.9 KB (added by shidouhikari, 3 years ago) |
|---|
-
wp-includes/feed-rss2-comments.php
18 18 > 19 19 <channel> 20 20 <title><?php 21 $head_title = ''; 21 22 if ( is_singular() ) 22 printf(ent2ncr(__('Comments on: %s')), get_the_title_rss());23 $head_title = sprintf(ent2ncr(__('Comments on: %s')), get_the_title_rss()); 23 24 elseif ( is_search() ) 24 printf(ent2ncr(__('Comments for %s searching on %s')), get_bloginfo_rss( 'name' ), esc_attr($wp_query->query_vars['s']));25 $head_title = sprintf(ent2ncr(__('Comments for %s searching on %s')), get_bloginfo_rss( 'name' ), esc_attr($wp_query->query_vars['s'])); 25 26 else 26 printf(ent2ncr(__('Comments for %s')), get_bloginfo_rss( 'name' ) . get_wp_title_rss()); 27 $head_title = sprintf(ent2ncr(__('Comments for %s')), get_bloginfo_rss( 'name' ) . get_wp_title_rss()); 28 echo apply_filters('commentsrss2_head_title',$head_title); 27 29 ?></title> 28 30 <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" /> 29 31 <link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link> … … 39 41 ?> 40 42 <item> 41 43 <title><?php 44 $item_title = ''; 42 45 if ( !is_singular() ) { 43 46 $title = get_the_title($comment_post->ID); 44 47 $title = apply_filters('the_title_rss', $title); 45 printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss());48 $item_title = sprintf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss()); 46 49 } else { 47 printf(ent2ncr(__('By: %s')), get_comment_author_rss());50 $item_title = sprintf(ent2ncr(__('By: %s')), get_comment_author_rss()); 48 51 } 52 echo apply_filters('commentrss2_item_title', $item_title, $comment); 49 53 ?></title> 50 54 <link><?php comment_link() ?></link> 51 55 <dc:creator><?php echo get_comment_author_rss() ?></dc:creator>
