Ticket #10005: entities-in-feeds.diff
| File entities-in-feeds.diff, 3.5 KB (added by xibe, 4 years ago) |
|---|
-
feed-atom-comments.php
16 16 > 17 17 <title type="text"><?php 18 18 if ( is_singular() ) 19 /* translators: do not use HTML entities ( , etc.): string is used in XML feeds */ 19 20 printf(ent2ncr(__('Comments on: %s')), get_the_title_rss()); 20 21 elseif ( is_search() ) 22 /* translators: do not use HTML entities ( , etc.): string is used in XML feeds */ 21 23 printf(ent2ncr(__('Comments for %1$s searching on %2$s')), get_bloginfo_rss( 'name' ), esc_attr(get_search_query())); 22 24 else 25 /* translators: do not use HTML entities ( , etc.): string is used in XML feeds */ 23 26 printf(ent2ncr(__('Comments for %s')), get_bloginfo_rss( 'name' ) . get_wp_title_rss()); 24 27 ?></title> 25 28 <subtitle type="text"><?php bloginfo_rss('description'); ?></subtitle> … … 51 54 if ( !is_singular() ) { 52 55 $title = get_the_title($comment_post->ID); 53 56 $title = apply_filters('the_title_rss', $title); 57 /* translators: do not use HTML entities ( , etc.): string is used in XML feeds */ 54 58 printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss()); 55 59 } else { 60 /* translators: do not use HTML entities ( , etc.): string is used in XML feeds */ 56 61 printf(ent2ncr(__('By: %s')), get_comment_author_rss()); 57 62 } 58 63 ?></title> -
feed-rss2-comments.php
19 19 <channel> 20 20 <title><?php 21 21 if ( is_singular() ) 22 /* translators: do not use HTML entities ( , etc.): string is used in XML feeds */ 22 23 printf(ent2ncr(__('Comments on: %s')), get_the_title_rss()); 23 24 elseif ( is_search() ) 25 /* translators: do not use HTML entities ( , etc.): string is used in XML feeds */ 24 26 printf(ent2ncr(__('Comments for %s searching on %s')), get_bloginfo_rss( 'name' ), esc_attr($wp_query->query_vars['s'])); 25 27 else 28 /* translators: do not use HTML entities ( , etc.): string is used in XML feeds */ 26 29 printf(ent2ncr(__('Comments for %s')), get_bloginfo_rss( 'name' ) . get_wp_title_rss()); 27 30 ?></title> 28 31 <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" /> … … 43 46 if ( !is_singular() ) { 44 47 $title = get_the_title($comment_post->ID); 45 48 $title = apply_filters('the_title_rss', $title); 49 /* translators: do not use HTML entities ( , etc.): string is used in XML feeds */ 46 50 printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss()); 47 51 } else { 52 /* translators: do not use HTML entities ( , etc.): string is used in XML feeds */ 48 53 printf(ent2ncr(__('By: %s')), get_comment_author_rss()); 49 54 } 50 55 ?></title> … … 53 58 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_comment_time('Y-m-d H:i:s', true, false), false); ?></pubDate> 54 59 <guid isPermaLink="false"><?php comment_guid() ?></guid> 55 60 <?php if ( post_password_required($comment_post) ) : ?> 61 /* translators: do not use HTML entities ( , etc.): string is used in XML feeds */ 56 62 <description><?php echo ent2ncr(__('Protected Comments: Please enter your password to view comments.')); ?></description> 57 63 <content:encoded><![CDATA[<?php echo get_the_password_form() ?>]]></content:encoded> 58 64 <?php else : // post pass ?>
