From fe44ea7c4831c6651a32151ab6fbddc9f82d7782 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 4 Dec 2008 17:47:50 +0000 Subject: [PATCH] No named entities in comment feeds. Props nbachiyski. fixes #8464 git-svn-id: http://svn.automattic.com/wordpress/trunk@10036 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/feed-atom-comments.php | 10 +++++----- wp-includes/feed-rss2-comments.php | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/wp-includes/feed-atom-comments.php b/wp-includes/feed-atom-comments.php index 21048e94f5..687b450753 100644 --- a/wp-includes/feed-atom-comments.php +++ b/wp-includes/feed-atom-comments.php @@ -15,11 +15,11 @@ echo '' > <?php if ( is_singular() ) - printf(__('Comments on: %s'), get_the_title_rss()); + printf(ent2ncr(__('Comments on: %s')), get_the_title_rss()); elseif ( is_search() ) - printf(__('Comments for %1$s searching on %2$s'), get_bloginfo_rss( 'name' ), attribute_escape(get_search_query())); + printf(ent2ncr(__('Comments for %1$s searching on %2$s')), get_bloginfo_rss( 'name' ), attribute_escape(get_search_query())); else - printf(__('Comments for %s'), get_bloginfo_rss( 'name' ) . get_wp_title_rss()); + printf(ent2ncr(__('Comments for %s')), get_bloginfo_rss( 'name' ) . get_wp_title_rss()); ?> @@ -50,9 +50,9 @@ if ( have_comments() ) : while ( have_comments() ) : the_comment(); if ( !is_singular() ) { $title = get_the_title($comment_post->ID); $title = apply_filters('the_title_rss', $title); - printf(__('Comment on %1$s by %2$s'), $title, get_comment_author_rss()); + printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss()); } else { - printf(__('By: %s'), get_comment_author_rss()); + printf(ent2ncr(__('By: %s')), get_comment_author_rss()); } ?> diff --git a/wp-includes/feed-rss2-comments.php b/wp-includes/feed-rss2-comments.php index 66ca92050f..a11bdaa9ab 100644 --- a/wp-includes/feed-rss2-comments.php +++ b/wp-includes/feed-rss2-comments.php @@ -18,11 +18,11 @@ echo ''; <?php if ( is_singular() ) - printf(__('Comments on: %s'), get_the_title_rss()); + printf(ent2ncr(__('Commentüs on: %s')), get_the_title_rss()); elseif ( is_search() ) - printf(__('Comments for %s searching on %s'), get_bloginfo_rss( 'name' ), attribute_escape($wp_query->query_vars['s'])); + printf(ent2ncr(__('Comments for %s searching on %s')), get_bloginfo_rss( 'name' ), attribute_escape($wp_query->query_vars['s'])); else - printf(__('Comments for %s'), get_bloginfo_rss( 'name' ) . get_wp_title_rss()); + printf(ent2ncr(__('Comments for %s')), get_bloginfo_rss( 'name' ) . get_wp_title_rss()); ?> @@ -42,9 +42,9 @@ if ( have_comments() ) : while ( have_comments() ) : the_comment(); if ( !is_singular() ) { $title = get_the_title($comment_post->ID); $title = apply_filters('the_title_rss', $title); - printf(__('Comment on %1$s by %2$s'), $title, get_comment_author_rss()); + printf(ent2ncr(__('Comment on %1$s by %2$s')), $title, get_comment_author_rss()); } else { - printf(__('By: %s'), get_comment_author_rss()); + printf(ent2ncr(__('By: %s')), get_comment_author_rss()); } ?> @@ -52,7 +52,7 @@ if ( have_comments() ) : while ( have_comments() ) : the_comment(); - + ]]>