Make WordPress Core

Changeset 10036


Ignore:
Timestamp:
12/04/2008 05:47:50 PM (17 years ago)
Author:
ryan
Message:

No named entities in comment feeds. Props nbachiyski. fixes #8464

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/feed-atom-comments.php

    r9819 r10036  
    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>
     
    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>
  • trunk/wp-includes/feed-rss2-comments.php

    r9819 r10036  
    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" />
     
    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>
     
    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 ?>
Note: See TracChangeset for help on using the changeset viewer.