Make WordPress Core

Ticket #8464: no-named-entities-in-comment-feeds.diff

File no-named-entities-in-comment-feeds.diff, 3.7 KB (added by nbachiyski, 17 years ago)
  • wp-includes/feed-atom-comments.php

     
    1515>
    1616        <title type="text"><?php
    1717                if ( is_singular() )
    18                         printf(__('Comments on: %s'), get_the_title_rss());
     18                        printf(ent2ncr(__('Comments on: %s')), get_the_title_rss());
    1919                elseif ( is_search() )
    20                         printf(__('Comments for %1$s searching on %2$s'), get_bloginfo_rss( 'name' ), attribute_escape(get_search_query()));
     20                        printf(ent2ncr(__('Comments for %1$s searching on %2$s')), get_bloginfo_rss( 'name' ), attribute_escape(get_search_query()));
    2121                else
    22                         printf(__('Comments for %s'), get_bloginfo_rss( 'name' ) . get_wp_title_rss());
     22                        printf(ent2ncr(__('Comments for %s')), get_bloginfo_rss( 'name' ) . get_wp_title_rss());
    2323        ?></title>
    2424        <subtitle type="text"><?php bloginfo_rss('description'); ?></subtitle>
    2525
     
    5050                        if ( !is_singular() ) {
    5151                                $title = get_the_title($comment_post->ID);
    5252                                $title = apply_filters('the_title_rss', $title);
    53                                 printf(__('Comment on %1$s by %2$s'), $title, get_comment_author_rss());
     53                                printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss());
    5454                        } else {
    55                                 printf(__('By: %s'), get_comment_author_rss());
     55                                printf(ent2ncr(__('By: %s')), get_comment_author_rss());
    5656                        }
    5757                ?></title>
    5858                <link rel="alternate" href="<?php comment_link(); ?>" type="<?php bloginfo_rss('html_type'); ?>" />
  • wp-includes/feed-rss2-comments.php

     
    1818<channel>
    1919        <title><?php
    2020                if ( is_singular() )
    21                         printf(__('Comments on: %s'), get_the_title_rss());
     21                        printf(ent2ncr(__('Comment&uuml;s on: %s')), get_the_title_rss());
    2222                elseif ( is_search() )
    23                         printf(__('Comments for %s searching on %s'), get_bloginfo_rss( 'name' ), attribute_escape($wp_query->query_vars['s']));
     23                        printf(ent2ncr(__('Comments for %s searching on %s')), get_bloginfo_rss( 'name' ), attribute_escape($wp_query->query_vars['s']));
    2424                else
    25                         printf(__('Comments for %s'), get_bloginfo_rss( 'name' ) . get_wp_title_rss());
     25                        printf(ent2ncr(__('Comments for %s')), get_bloginfo_rss( 'name' ) . get_wp_title_rss());
    2626        ?></title>
    2727        <atom:link href="<?php self_link(); ?>" rel="self" type="application/rss+xml" />
    2828        <link><?php (is_single()) ? the_permalink_rss() : bloginfo_rss("url") ?></link>
     
    4242                        if ( !is_singular() ) {
    4343                                $title = get_the_title($comment_post->ID);
    4444                                $title = apply_filters('the_title_rss', $title);
    45                                 printf(__('Comment on %1$s by %2$s'), $title, get_comment_author_rss());
     45                                printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss());
    4646                        } else {
    47                                 printf(__('By: %s'), get_comment_author_rss());
     47                                printf(ent2ncr(__('By: %s')), get_comment_author_rss());
    4848                        }
    4949                ?></title>
    5050                <link><?php comment_link() ?></link>
     
    5252                <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_comment_time('Y-m-d H:i:s', true), false); ?></pubDate>
    5353                <guid isPermaLink="false"><?php comment_guid() ?></guid>
    5454<?php if ( post_password_required($comment_post) ) : ?>
    55                 <description><?php _e('Protected Comments: Please enter your password to view comments.'); ?></description>
     55                <description><?php echo ent2ncr(__('Protected Comments: Please enter your password to view comments.')); ?></description>
    5656                <content:encoded><![CDATA[<?php echo get_the_password_form() ?>]]></content:encoded>
    5757<?php else : // post pass ?>
    5858                <description><?php comment_text_rss() ?></description>